Repository navigation
[pull] main from danny-avila:main - #182
Merged
Merged
Conversation
* feat: make SearXNG engines and language configurable createSearXNGAPI hardcoded its engine list, language, and timeout, so self-hosted instances could not opt out of DuckDuckGo. Instances without residential IPs get persistent CAPTCHAs from it, which degrades or empties web search results with no way to configure around it short of patching the published search.cjs after every upgrade. Add a searxngSearchOptions block on SearchConfig, matching the shape the Tavily, Keenable, and CRW providers already use, and change the third parameter of createSearXNGAPI from a bare agents object to those options so it carries the agents like the other providers do. engines, language, and timeout fall back to the previous values, and time_range is only sent when set, so an absent block leaves the outgoing request unchanged. timeRange is camelCase on the options interface to match TavilySearchOptions and is mapped onto the payload's time_range. categories stays derived from the tool's type argument and safesearch stays sourced from the top-level safeSearch config, since image, video, and news search depend on the former. Thread searxngSearchOptions through createSearchTool, which forwards each provider's options explicitly rather than spreading config, so the block would otherwise typecheck and then be dropped. Also drop defaultLocation from the SearXNG config, which was set but never read; language was hardcoded separately. * test: use real HTTP agent instances in SearXNG options tests
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )