Tool 'web_search_preview' is not supported with gpt-5.1-codex-max-2025-12-04.
Resolved 💬 6 comments Opened Jan 28, 2026 by gaoconggit Closed Jan 29, 2026
💡 Likely answer: A maintainer (sayan-oai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.92.0
What subscription do you have?
azure
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
linux
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
{
"error": {
"message": "Tool 'web_search_preview' is not supported with gpt-5.1-codex-max-2025-12-04.",
"type": "invalid_request_error",
"param": "tools",
"code": null
}
}
What steps can reproduce the bug?
[features]
web_search_request = false
---
It worked fine after downgrading to version 0.91.0.
What is the expected behavior?
_No response_
Additional information
_No response_
6 Comments
@gaoconggit Thanks for the report. We're in the process of deprecating the old
web_search_requestfeature flag and moving to a top-levelweb_searchvalue that can be"live","cached", or"disabled".In your case, I think setting
web_search="disabled"in yourconfig.tomlshould solve this. Let me know if that doesn't work.There will be an explicit deprecation notice in the next CLI version; sorry for the confusion.
In my testing,
web_search = "disabled'needs to be at the top-level section of yourconfig.tomlabove any other sections. Otherwise the setting isn't getting picked up.@jcbartle, can you share the relevant snippet of your
config.tomlwhere it's not getting picked up? It should get picked up both as a top-level field as well as a field in anyprofilesyou define in yourconfig.toml. If it's set under a profile, it will only apply when running codex with that profile.Hi, @sayan-oai. Thanks for reaching out. I have an extremely basic config file on my machine, so I'm sure this is my fault. Here's the relevant, anonymized snippet:
Working:
Not working:
Which now looking at it makes sense as it probably interprets that as being part of the
model_providers.azuresection...Yeah, it's being interpreted as part of
model_providersand not being picked up; this is a TOML quirk.If you're in VSCode/Cursor, you can avoid these sorts of issues by using the Even Better TOML extension and setting the schema association for that file to
https://developers.openai.com/codex/config-schema.json. That'll give you helpful field autocompletion and diagnostics for misconfigurations like this one.This is the second time that Codex in VS had breaking changes.