searxngSettings.engines in librechat.yaml is ignored — engines hardcoded in @librechat/agents #14117
kaloona
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment
|
Thanks for the report. That said, exposing SearXNG engine selection would be a reasonable enhancement request, especially for self-hosted instances where specific engines may be blocked. I’m going to treat this as a feature request rather than a bug. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The
searxngSettings.enginesvalue configured inlibrechat.yamlis silently ignored. Instead,@librechat/agentshardcodes the engines string directly in the source code.Location of hardcoded value:
@librechat/agents/dist/cjs/tools/search/search.cjs, line ~164:engines: "google,bing,duckduckgo"The
createSearXNGAPI()function only acceptsinstanceUrlandapiKeyas parameters — thesearxngSettingsblock from config is never passed in or read.Expected behavior
The
enginesvalue fromlibrechat.yamlshould be used:Actual behavior
Regardless of the configured engines, SearXNG is always called with
engines=google,bing,duckduckgo.Why this matters
DuckDuckGo blocks SearXNG instances without residential IPs with persistent CAPTCHAs, making it effectively unusable for self-hosted instances. Users need to configure alternative engines (e.g. Startpage, Qwant) — but the config option has no effect.
Workaround
Patching
search.cjsmanually after each update via a volume mount override.Environment
v0.8.7-rc13.2.43All reactions