mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-17 07:00:15 +00:00
WEB API independent
This commit is contained in:
@@ -102,12 +102,7 @@ async def read_main():
|
||||
|
||||
|
||||
@router.get("/v1/chat/dialogue/list", response_model=Result[ConversationVo])
|
||||
async def dialogue_list(response: Response, user_id: str = None):
|
||||
# 设置CORS头部信息
|
||||
response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
response.headers["Access-Control-Allow-Methods"] = "GET"
|
||||
response.headers["Access-Control-Request-Headers"] = "content-type"
|
||||
|
||||
async def dialogue_list( user_id: str = None):
|
||||
dialogues: List = []
|
||||
datas = DuckdbHistoryMemory.conv_list(user_id)
|
||||
|
||||
|
Reference in New Issue
Block a user