diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index 49d726c5f..d0d2c28fa 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -95,10 +95,10 @@ def knowledge_list(): params.update({space.name: space.name}) return params - -@router.get("/chat") -async def read_main(): - return FileResponse(f"{static_file_path}/chat.html") +# +# @router.get("/chat") +# async def read_main(): +# return FileResponse(f"{static_file_path}/chat.html") @router.get("/v1/chat/dialogue/list", response_model=Result[ConversationVo]) @@ -118,7 +118,7 @@ async def dialogue_list( user_id: str = None): ) dialogues.append(conv_vo) - return Result[ConversationVo].succ(dialogues[-10:]) + return Result[ConversationVo].succ(dialogues[:10]) @router.post("/v1/chat/dialogue/scenes", response_model=Result[List[ChatSceneVo]]) diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 92536cb28..d5f39aff4 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -