mirror of
https://github.com/Canner/WrenAI.git
synced 2026-10-24 02:25:59 +08:00
chore(wren-ai-service): fix wrong ask candidate number (#610)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user