feat: add Tavily Extract as configurable alternative to Jina Reader#4
Open
tavily-integrations wants to merge 1 commit into
Open
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
Adds Tavily Extract as a configurable alternative to Jina Reader for URL content extraction in the browse workflow. This is an additive change — existing Jina Reader functionality is fully preserved.
What changed
minimax_search_browse.py: Addedread_tavily(url)function usingTavilyClient.extract()to fetch page content. Updatedget_browse_results()with provider-selection logic that checksBROWSE_PROVIDERenv var andTAVILY_API_KEYpresence.pyproject.toml: Addedtavily-python>=0.3.0dependency.Provider selection logic
BROWSE_PROVIDER=tavily→ use TavilyBROWSE_PROVIDER=jina→ use JinaTAVILY_API_KEYis present → use TavilyDependency changes
tavily-python>=0.3.0topyproject.tomlEnvironment variable changes
TAVILY_API_KEY(new, optional) — activates Tavily Extract pathBROWSE_PROVIDER(new, optional) — set totavilyorjinato explicitly choose providerJINA_API_KEY(existing, unchanged)Notes for reviewers
raw_content(markdown/text) per URL, matching the format Jina Reader returnsget_browse_answer()requires no changes as it receives the same plain-text stringAutomated Review
tavily-pythondependency entry when merged with the prerequisite unit, and repeatedTavilyClientinstantiation on every call.