docs: define foreign web-search compatibility contract - #22
Merged
Merged
Conversation
AviBackToBlack
added a commit
that referenced
this pull request
Sep 14, 2026
## Summary Follow up the merged foreign web-search compatibility contract from #22 with the intentionally small production fix it identified. This PR: - stops mapping LiteLLM `supports_web_search=false` to Codex `supports_search_tool=false` for exact templates - stops treating `supports_web_search` overrides as provenance/ownership for exact `supports_search_tool` - keeps foreign `supports_search_tool=false` as a conservative **tool-search/deferred-discovery** decision, not a hosted-web-search suppression guarantee - keeps LiteLLM/override `supports_web_search` visible as capability evidence in `explain` - adds regressions for raw exact evidence, exact overrides, and foreign override provenance - aligns the older model-group aggregation design text with the source-backed web-search contract No foreign hosted-web-search enablement is added. Provider/runtime hosted-search behavior remains deferred under `docs/foreign-web-search.md`. Refs #5 <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/avibacktoblack/litellm-codex-models/pull/23" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=3"> <img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=3" alt="Devin Review"> </picture> </a> <!-- devin-review-badge-end -->
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
Close the v0.3 foreign web-search research/design gate before changing production behavior.
This PR records the source-backed contract discovered from current Codex and LiteLLM behavior:
supports_search_toolis about tool discovery/deferred exposure, not hosted web searchweb_searchis gated by provider capability + runtime web-search mode;web_search_tool_typeonly selects request shapeweb_search=truedisabledvariantsupports_web_searchis capability evidence but does not prove that every routed deployment accepts the exact OpenAI Responses hosted-search wire shape Codex emitsThe contract also identifies an immediate follow-up bugfix: stop mapping LiteLLM
supports_web_searchto Codexsupports_search_tool, and stop describing foreignsupports_search_tool=falseas a hosted-search disable guarantee.The companion source index makes the research re-checkable against future version-matched Codex/LiteLLM releases.
Refs #5