From d4846c2ee568f7229fa99d729bbad3e822030521 Mon Sep 17 00:00:00 2001 From: "tuyang.yhj" Date: Tue, 4 Jul 2023 19:12:43 +0800 Subject: [PATCH] WEB API independent --- pilot/openapi/api_v1/api_v1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index 8db64aa92..c9a4e0b87 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -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)