mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[GH-ISSUE #24765] bug: bing.py CLI calls search_bing() missing subscription_key and endpoint — TypeError at runtime #123711
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qizwiz on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24765
Summary
backend/open_webui/retrieval/web/bing.pycontains a CLI__main__block that callssearch_bing()with 4 positional arguments, but the function signature requires 5.Code
If the
search_bingsignature is(subscription_key, endpoint, locale, query, count)(as the function name and Bing API structure imply), this call:args.locale→subscription_key❌ (wrong value)args.query→endpoint❌ (wrong value)args.count→locale❌ (wrong value)args.filter→query❌ (wrong value)count→ missing →TypeErrorat runtimeHow it was found
Detected by pact (
required_arg_missingmode), which checks that all required positional arguments are covered at call sites. The call has 4 positional args; the function requires 5.Expected fix
The
__main__block should passsubscription_keyandendpointfrom environment variables or argparse arguments:Environment
backend/open_webui/retrieval/web/bing.py, line 66python -m open_webui.retrieval.web.bingCLI path@owui-terminator[bot] commented on GitHub (May 15, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟣 #11578 issue: Bing Web Search is 404'ing
This is a Bing provider bug in the same
open_webuiweb search path, with the endpoint being used incorrectly and producing a 404. It is closely related to the Bing integration wiring inbackend/open_webui/retrieval/web/bing.py.by sfarthin ·
bug🟣 #7276 Bing Search API EndPoint Format Issue
This closed issue reports a malformed Bing request URL / endpoint format problem in the Bing search provider, which is directly related to incorrect Bing API call construction in the same module.
by deserttroll
🟣 #7066 web search bing errors
This issue is about Bing web search failing in the same backend Bing search codepath. Although the symptom is a different encoding error, it confirms problems in the Bing provider implementation rather than an unrelated web-search feature.
by fq393
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@Classic298 commented on GitHub (May 15, 2026):
https://github.com/open-webui/open-webui/pull/24768