mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-17 23:18:20 +00:00
WEB API independent
This commit is contained in:
@@ -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):
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user