mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-25 19:39:35 +00:00
WEB API independent
This commit is contained in:
parent
cfd93585e0
commit
d4846c2ee5
@ -138,9 +138,7 @@ async def dialogue_scenes():
|
||||
|
||||
|
||||
@router.post("/v1/chat/dialogue/new", response_model=Result[ConversationVo])
|
||||
async def dialogue_new(
|
||||
chat_mode: str = ChatScene.ChatNormal.value(), user_id: str = None
|
||||
):
|
||||
async def dialogue_new(chat_mode: str = ChatScene.ChatNormal.value(), user_id: str = None):
|
||||
conv_vo = __new_conversation(chat_mode, user_id)
|
||||
return Result.succ(conv_vo)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user