mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-26 11:59:32 +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])
|
@router.post("/v1/chat/dialogue/new", response_model=Result[ConversationVo])
|
||||||
async def dialogue_new(
|
async def dialogue_new(chat_mode: str = ChatScene.ChatNormal.value(), user_id: str = None):
|
||||||
chat_mode: str = ChatScene.ChatNormal.value(), user_id: str = None
|
|
||||||
):
|
|
||||||
conv_vo = __new_conversation(chat_mode, user_id)
|
conv_vo = __new_conversation(chat_mode, user_id)
|
||||||
return Result.succ(conv_vo)
|
return Result.succ(conv_vo)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user