main
zc 2 months ago
parent 12517293ed
commit c01b76c608
  1. 3
      app/api/chat/ai/chat_router.py

@ -51,7 +51,6 @@ async def h5_chat_stream(request: Request, inp: ChatIn):
if not user_id:
raise HTTPException(status_code=400, detail="缺少用户 ID")
knowledge = None
spot = await extract_spot(inp.message)
if spot:
# 使用线程池异步执行同步函数
@ -78,7 +77,7 @@ async def h5_chat_stream(request: Request, inp: ChatIn):
cat = await classify(inp.message)
async def content_stream() -> AsyncGenerator[str, None]:
global knowledge
knowledge = None
nonlocal conversation_history
# 记录热门问题(包括快捷问题)

Loading…
Cancel
Save