Skip to content

responses_feature_not_supported: web_search - Codex

Quick fix

Upgrade cc-switch to v3.16.5, which disables web_search in the config automatically to work around the Xiaomi MiMo gateway limitation.

Error output
data:{"error":{"code":"responses_feature_not_supported","message":"tool type 'web_search' is not supported by this gateway phase.","param":"","type":"unsupported_feature"}}

The native Xiaomi MiMo /responses gateway does not support the OpenAI web_search built-in tool or the json_schema format. When Codex carries those parameters by default and connects to MiMo directly, the gateway rejects it with HTTP 400 and responses_feature_not_supported.

In v3.16.5, cc-switch disables web_search in the config automatically for the MiMo provider to resolve the error. Note that cc-switch local routing (Responses to Chat Completions) has not fully adapted Xiaomi web search and json_schema conversion, so a direct connection can only disable those features, or fall back to the Chat Completions protocol for now.

  1. Upgrade cc-switch to v3.16.5 or newer.

  2. Switch or save the Xiaomi MiMo provider once more in the cc-switch app to trigger config file regeneration. The tool writes the disabling parameter at the top level automatically.

    ~/.codex/config.toml
    web_search = "disabled"
  3. If you hit a json_schema unsupported error using features such as "approve for me", switch to the Chat Completions protocol (through cc-switch local routing) rather than connecting to Responses directly.

ToolCodex
Version<= 3.16.4 (v3.16.5 修复了 web_search 报错)
PlatformsWindows
Why can Xiaomi MiMo no longer use web search after upgrading to v3.16.5?
Because the native Xiaomi /responses gateway does not support the OpenAI web_search tool, and v3.16.5 disables it automatically to avoid the error. cc-switch local routing has not completed the two-way protocol adaptation for Xiaomi web search, so it cannot be used in Codex for now.
Using "approve for me" errors with text.format type 'json_schema' is not supported. What now?
Native Xiaomi MiMo Responses does not support the json_schema format. Use the Chat Completions format (through cc-switch local routing) rather than connecting to the Responses protocol directly.
I set web_search = "disabled" in the config file by hand and it still says unsupported.
That setting has to be at the top level of ~/.codex/config.toml, not inside a [tools] or [model_providers.*] section. Upgrading to v3.16.5 and letting the tool handle it is preferable.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.