diff --git a/app/controller/add_langgraph_chat_route.py b/app/controller/add_langgraph_chat_route.py index a2ec134..7c5b356 100644 --- a/app/controller/add_langgraph_chat_route.py +++ b/app/controller/add_langgraph_chat_route.py @@ -243,7 +243,7 @@ def add_langgraph_chat_route(app: FastAPI): # 删除聊天记录 @app.post("/langgraph/chat_remove/{thread_id}") - async def langgraph_chat(thread_id: str, checkpointer: AsyncPostgresSaverDep, session=AsyncSessionDep): + async def langgraph_chat(thread_id: str, checkpointer: AsyncPostgresSaverDep, session: AsyncSessionDep): await ConversationService.item_delete(session=session, row_dict={"id": thread_id}) await checkpointer.adelete_thread(thread_id) return {"result": "success"}