Skip to content

Tool 'web_search_preview' is not supported with gpt-5.1-codex-max-2025-12-04. #10071

Closed

Description

@gaoconggit

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

Activity

  1. added
    bug
    on Jan 28, 2026
  2. added
    CLI
    azure
    tool-calls
    on Jan 28, 2026
  3. sayan-oai commented on Jan 28, 2026

    @sayan-oai
    Contributor

    @gaoconggit Thanks for the report. We're in the process of deprecating the old web_search_request feature flag and moving to a top-level web_search value that can be "live", "cached", or "disabled".

    In your case, I think setting web_search="disabled" in your config.toml should 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.

  4. jcbartle commented on Jan 28, 2026

    @jcbartle

    In my testing, web_search = "disabled' needs to be at the top-level section of your config.toml above any other sections. Otherwise the setting isn't getting picked up.

  5. sayan-oai commented on Jan 28, 2026

    @sayan-oai
    Contributor

    @jcbartle, can you share the relevant snippet of your config.toml where it's not getting picked up? It should get picked up both as a top-level field as well as a field in any profiles you define in your config.toml. If it's set under a profile, it will only apply when running codex with that profile.

  6. jcbartle commented on Jan 28, 2026

    @jcbartle

    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:

    model = "gpt-5.2-codex-2026-01-14"
    model_provider = "azure"
    model_reasoning_effort = "medium"
    web_search = "disabled"
    
    [model_providers.azure]
    name = "Azure OpenAI"
    base_url = "https://<base_url_value>"
    wire_api = "responses"
    env_key = "AZURE_OPENAI_API_KEY"
    env_http_headers = { "api-key" = "AZURE_OPENAI_API_KEY" }
    

    Not working:

    model = "gpt-5.2-codex-2026-01-14"
    model_provider = "azure"
    model_reasoning_effort = "medium"
    
    [model_providers.azure]
    name = "Azure OpenAI"
    base_url = "https://<base_url_value>"
    wire_api = "responses"
    env_key = "AZURE_OPENAI_API_KEY"
    env_http_headers = { "api-key" = "AZURE_OPENAI_API_KEY" }
    
    web_search = "disabled"
    

    Which now looking at it makes sense as it probably interprets that as being part of the model_providers.azure section...

  7. sayan-oai commented on Jan 28, 2026

    @sayan-oai
    Contributor

    Yeah, it's being interpreted as part of model_providers and 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.

  8. jgador commented on Jan 29, 2026

    @jgador

    This is the second time that Codex in VS had breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIazurebugtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions