chore(wren-ai-service): fix wrong ask candidate number (#610)

This commit is contained in:
Chih-Yu Yeh
2024-08-19 10:46:19 +08:00
committed by GitHub
parent aa8ff445c3
commit 6eef7aefe3
+2 -2
View File
@@ -280,8 +280,8 @@ class AskService:
]
# only return top 3 results, thus remove the rest
if len(results) > 3:
del results[3:]
if len(api_results) > 3:
del api_results[3:]
self._ask_results[query_id] = AskResultResponse(
status="finished",