客户端工具兼容性

用下面的矩阵核对客户端所用的工具类型和接入协议。

Responses-native 模型

工具类型兼容矩阵

工具类型路由到 Responses 货源时路由到其它货源时
function支持支持
custom(如 Codex 的 exec)支持已适配(Gemini 货源整理中)
local_shell支持已适配
namespace(工具分组)支持(展开为平铺工具)同左
tool_search · execution:"client"支持OpenAI/Anthropic 协议已适配(Gemini 未验)
tool_search · 服务端检索支持不支持:返回 400,reason=server_executed
shell(本地执行) / apply_patch支持返回 400,reason=not_adapted
computer / computer_use_preview支持暂不支持(需工具结果多模态回传)
mcp / web_search / file_search / code_interpreter / image_generation支持不支持:返回 400,reason=server_executed

状态以生产环境当前版本为准,随发布更新;被拒绝的请求会在错误信息里说明原因与可用的替代路径。

Anthropic 原生输出与思考参数

Messages 请求路由到 Anthropic 上游时,可以使用Anthropic 字段表列出的 output_config 和 thinking 形状。其它协议按各自支持范围填写。

看当前 Responses-native 模型 · 查找错误码