Repository navigation
feat(pi-native-web-search): fail fast when web search is unavailable - #11
Merged
Merged
Conversation
Providers other than openai-codex, anthropic, and api.openai.com stop before /responses with "web search unavailable for <provider>/<model>". An HTTP 404, or an HTTP 400 that says the web_search tool is missing, uses the same message. T9 is a required pass. Co-authored-by: Ying Xiang <contact@geminixiang.com>
T9 passes. T1–T8, T11, and T12 still pass. T10 stays skipped without an API key. Co-authored-by: Ying Xiang <contact@geminixiang.com>
geminixiang
marked this pull request as ready for review
November 20, 2026 09:12
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
Providers other than
openai-codex,anthropic, and an OpenAI Responses base URL ofapi.openai.comstop before any request. The script printsweb search unavailable for <provider>/<model>and names the supported paths. It does not crash and does not invent URLs.If a Responses call still returns HTTP 404, or HTTP 400 whose body says the
web_searchtool is missing, that same message is used. A generic HTTP 400 stays a request error.T9 is a required pass: the local gateway is not called. T1–T8, T11, and T12 still pass. T10 stays skipped without an API key.
Baseline
Recorded by
node evals/extensions/baseline.mjsagainst2aae1ac. Deterministic repetitions = 1.Test plan
npm test --workspace @geminixiang/pi-native-web-searchnpm run eval:baseline(T1–T9, T11, T12 pass; T10 skipped)npm run verifygreen, then mark this PR ready