From 9012bd153d7cf691f9aa9d0732aed067f2984003 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 21 Sep 2026 14:04:26 +0200 Subject: [PATCH] fix: stop sending count to the Staan search API (#30303) Staan rejects any count other than its fixed page size of 10, so every search 400ed with the default result count of 3. The API always returns 10 results; the local results[:count] slice already applies the configured count, so the request parameter is simply dropped. --- backend/open_webui/retrieval/web/staan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/web/staan.py b/backend/open_webui/retrieval/web/staan.py index 8326a0782c..c1af2b5b2a 100644 --- a/backend/open_webui/retrieval/web/staan.py +++ b/backend/open_webui/retrieval/web/staan.py @@ -30,7 +30,7 @@ def search_staan( 'Accept': 'application/json', 'Authorization': f'Bearer {api_key}', } - params = {'q': query, 'market': market, 'count': count} + params = {'q': query, 'market': market} if max_snippets: params['extra_snippets'] = 'true'