fix: validate retrieval-only chat questions before dispatch
This commit is contained in:
@@ -26,9 +26,6 @@ def chat(payload: ChatRequest, db: Session = Depends(get_db)) -> ChatResponse:
|
||||
"因此系统仅返回可追溯证据,不生成或改写答案。"
|
||||
),
|
||||
status="retrieval_only",
|
||||
sources=[
|
||||
{"title": hit.title, "source_url": hit.source_url}
|
||||
for hit in result.results
|
||||
],
|
||||
sources=[{"title": hit.title, "source_url": hit.source_url} for hit in result.results],
|
||||
retrieval_run_id=result.run_id,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user