Repository navigation
Accept lite as the default search type - #463
Open
kunalgoesbyken wants to merge 1 commit into
Open
kunalgoesbyken wants to merge 1 commit into
kunalgoesbyken wants to merge 1 commit into
Conversation
exa-labs#460 added the lite search type and widened web_search_exa's config to accept it, but ?defaultSearchType and DEFAULT_SEARCH_TYPE are still parsed against auto | fast | instant in api/mcp.ts and src/stdio.ts, so lite is silently dropped and web_search_exa falls back to auto. Parse the default search type in one place, src/tools/config.ts, and share its type with McpConfig, the request config, and web_search_exa.
This branch has not been 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 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
litesearch type and widenedweb_search_exa's config to accept it, but?defaultSearchType/DEFAULT_SEARCH_TYPEare still parsed againstauto | fast | instantinapi/mcp.tsandsrc/stdio.ts. Settingliteis silently ignored andweb_search_exafalls back toauto.src/tools/config.ts(parseDefaultSearchType) and share itsDefaultSearchTypetype withMcpConfig, the request config, andweb_search_exa, so the HTTP and stdio entry points can't drift from the tool again.liteinenv.example.Behavior
DEFAULT_SEARCH_TYPE, then toauto.auto,fastandinstantare unchanged.Verification
npm run format:checknpm run typechecknpm test(193 passed); the newlitecases fail without the fixsrc/runtime-server.tswithEXA_API_BASE_URLpointed at a local stub and calledweb_search_exaover Streamable HTTP:DEFAULT_SEARCH_TYPE=liteand?defaultSearchType=litenow sendtype: "lite"(previouslytype: "auto").