Repository navigation
Conversation
GAMMA_SEARCH_PROVIDER=deepseek uses DeepSeek's Search and Fetch tools with DEEPSEEK_API_KEY. Unset, search stays on Tavily as before.
This was referenced Nov 3, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
A deployment can switch web search to DeepSeek's Search & Fetch tools:
The public deployment already sets
DEEPSEEK_API_KEYfor chat, so the provider is named explicitly rather than inferred from the key; it stays on Tavily.How
web-search/provider.ts: the Tavily client becomes a sharedserviceClient;deepseekSearchanddeepseekExtractsit beside the Tavily pair. A hit's snippet is DeepSeek's model-orientedsummary, falling back tosnippet;datebecomespublished. A query is cut to DeepSeek's 128-character limit instead of being refused. Both extractors share the title trimming and the size cap.main.ts: picks the services fromGAMMA_SEARCH_PROVIDER; an unknown value, ordeepseekwithout a key, stops the server at start.GAMMA_SEARCH_PROXYnow applies to Tavily only; DeepSeek is reached directly.compose.production.ymlforwardsGAMMA_SEARCH_PROVIDER;docs/self-hosting.mdand the README describe it.Checked
pnpm check: Biome, TypeScript and all unit tests pass. Two web integration tests failed once under the full parallel run;test:integrationalone passes 85/85, and this branch touches no web code.github.com/bencodeas Markdown, and answered 404 for a page it could not reach, which surfaces as the route's usual 502.