WEB API independent

This commit is contained in:
tuyang.yhj
2023-07-03 11:18:57 +08:00
parent e5994cb588
commit 1605ce53bf
67 changed files with 412 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
message = ""
for error in exc.errors():
message += ".".join(error.get("loc")) + ":" + error.get("msg") + ";"
return Result.faild(msg=message)
return Result.faild(code= "E0001", msg=message)
def __get_conv_user_message(conversations: dict):

View File

@@ -34,7 +34,7 @@ class ConversationVo(BaseModel):
dialogue_uid
"""
conv_uid: str = Field(..., description="dialogue uid")
conv_uid: str = ""
"""
user input
"""
@@ -46,7 +46,7 @@ class ConversationVo(BaseModel):
"""
the scene of chat
"""
chat_mode: str = Field(..., description="the scene of chat ")
chat_mode: str = ""
"""
chat scene select param