feat: migrate search handler to support Tavily alongside DuckDuckGo#2
Open
tavily-integrations wants to merge 1 commit into239x1a3242-maker:mainfrom
Conversation
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.
Summary
tavily-pythondependency alongside existingduckduckgo-searchinrequirements.txttavily_web_search()inserver-fetch.pythat callsTavilyClient.search()and normalizes results to the same dict shape as DuckDuckGo results_get_search_provider()helper that readsSEARCH_PROVIDERenv var; defaults totavilywhenTAVILY_API_KEYis set, otherwise falls back to DuckDuckGoFetcher.web_searchto dispatch to Tavily or DuckDuckGo based on configured providerTAVILY_API_KEYandSEARCH_PROVIDERto.env.examplewith documentation__pycache__/and*.pycto.gitignoreFiles changed
requirements.txt— addedtavily-python==0.5.0backend/tools/server-fetch.py— Tavily import, search function, provider dispatch.env.example— new env var documentation.gitignore— ignore Python bytecode artifactsDependency changes
tavily-python==0.5.0torequirements.txtEnv var changes
TAVILY_API_KEY(required when using Tavily provider)SEARCH_PROVIDER(optional; values:tavily|duckduckgo)Notes for reviewers
TAVILY_API_KEYis present; explicitSEARCH_PROVIDERoverrides🤖 Generated with Claude Code
Automated Review