上线THINK功能

This commit is contained in:
朱潮 2025-11-26 10:54:07 +08:00
parent 0c8266797e
commit 2f5b49032f

View File

@ -249,7 +249,7 @@ async def create_agent_and_generate_response(
thought_list = [] thought_list = []
if guideline_analysis != '': if guideline_analysis != '':
thought_list = [{"role": "assistant","content": guideline_analysis}] thought_list = [{"role": "assistant","reasoning_content": guideline_analysis}]
# 根据stream参数决定返回流式还是非流式响应 # 根据stream参数决定返回流式还是非流式响应
if stream: if stream:
return StreamingResponse( return StreamingResponse(