fix(codex): declare xhigh reasoning tier for grok-4.5 xAI presets

Probed 2026-08-30 against native /v1/responses: grok-4.5 accepts
low/medium/high/xhigh and rejects max with HTTP 400 "Invalid reasoning
effort". Codex does not clamp out-of-catalog efforts, so the preset
list must match what the upstream actually accepts.
This commit is contained in:
Jason
2026-08-30 23:53:14 +08:00
parent c88b00faf6
commit c08040e926

View File

@@ -1796,11 +1796,13 @@ requires_openai_auth = true`,
contextWindow: 500000,
supportsParallelToolCalls: true,
inputModalities: ["text", "image"],
// xAI Reasoning guidedocs.x.ai2026-08模型级枚举 low/medium/high
// 默认 high"Reasoning cannot be disabled" 故无 none 档(模板默认的
// none 对 grok-4.5 是无效选项xhigh 是 grok-4.6 起才有的档位。
// 实测2026-08-30native /v1/responses 逐档探测grok-4.5 接受
// low/medium/high/xhigh拒绝 maxHTTP 400 "Invalid reasoning
// effort""Reasoning cannot be disabled" 故无 none 档。Codex 不按
// catalog clamp 越界档位Desktop UI 选出的 max 会原样发出),此列表
// 必须与上游实收集合一致,勿凭文档增删。
// ⚠️ docs.x.ai/developers/grok-4-5 页面实际渲染的是 grok-4.6 内容勿引
reasoningLevels: ["low", "medium", "high"],
reasoningLevels: ["low", "medium", "high", "xhigh"],
},
]),
category: "third_party",
@@ -1828,11 +1830,13 @@ requires_openai_auth = true`,
contextWindow: 500000,
supportsParallelToolCalls: true,
inputModalities: ["text", "image"],
// xAI Reasoning guidedocs.x.ai2026-08模型级枚举 low/medium/high
// 默认 high"Reasoning cannot be disabled" 故无 none 档(模板默认的
// none 对 grok-4.5 是无效选项xhigh 是 grok-4.6 起才有的档位。
// 实测2026-08-30native /v1/responses 逐档探测grok-4.5 接受
// low/medium/high/xhigh拒绝 maxHTTP 400 "Invalid reasoning
// effort""Reasoning cannot be disabled" 故无 none 档。Codex 不按
// catalog clamp 越界档位Desktop UI 选出的 max 会原样发出),此列表
// 必须与上游实收集合一致,勿凭文档增删。
// ⚠️ docs.x.ai/developers/grok-4-5 页面实际渲染的是 grok-4.6 内容勿引
reasoningLevels: ["low", "medium", "high"],
reasoningLevels: ["low", "medium", "high", "xhigh"],
},
]),
category: "third_party",