Skip to content

Conversation

@lxgr
Copy link

@lxgr lxgr commented Nov 19, 2025

Adds a new web_search_engine option that allows users to explicitly choose the web search engine: "native" (provider's built-in search) or "exa".

If none is provided (i.e. only "online"), default to "undefined" (which per the OpenRouter docs means that native is preferred if available, and otherwise exa is selected).

Note that native does not seem to be widely available, and in particular isn't anymore for the examples listed in the docs; I could only get it to accept native for gpt-5. Still, it allows figuring out which models support native in the first place without paying for an Exa search each time.

Closes #41

🤖 Generated with Claude Code

lxgr and others added 2 commits November 18, 2025 22:09
Adds a new `web_search` option that allows users to explicitly choose
the web search engine: "native" (provider's built-in search) or "exa".

Also makes the existing `online` option explicitly use the exa engine.
Raises an error if both `online` and `web_search` are provided.

Closes simonw#41

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support web_search_options

1 participant