mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-08 11:47:44 +00:00
WEB API independent
This commit is contained in:
parent
0825d6c64f
commit
fb9194df24
@ -118,7 +118,7 @@ async def dialogue_list( user_id: str = None):
|
|||||||
)
|
)
|
||||||
dialogues.append(conv_vo)
|
dialogues.append(conv_vo)
|
||||||
|
|
||||||
return Result[ConversationVo].succ(dialogues[-10:][::-1])
|
return Result[ConversationVo].succ(dialogues[-10:])
|
||||||
|
|
||||||
|
|
||||||
@router.post("/v1/chat/dialogue/scenes", response_model=Result[List[ChatSceneVo]])
|
@router.post("/v1/chat/dialogue/scenes", response_model=Result[List[ChatSceneVo]])
|
||||||
|
@ -25,7 +25,7 @@ CFG = Config()
|
|||||||
|
|
||||||
|
|
||||||
class ChatKnowledge(BaseChat):
|
class ChatKnowledge(BaseChat):
|
||||||
chat_scene: str = ChatScene.ChatKnowledge.value
|
chat_scene: str = ChatScene.ChatKnowledge.value()
|
||||||
|
|
||||||
"""Number of results to return from the query"""
|
"""Number of results to return from the query"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user