app/api/agent.py
@@ -82,8 +82,8 @@ 'reference': reference }) last_question = None reference_index += 1 # 只有在添加了assistant的回答后,索引才增加 return JSONResponse(status_code=200, content={"code": 200, "log": combined_logs}) reference_index += 1 return JSONResponse(status_code=200, content={"code": 200, "data": combined_logs}) else: return JSONResponse(status_code=200, content={"code": 400, "message": "Invalid result structure"})