From 74f92ac15a62a63fb3ebe1b24c9a24d8f9b1ea61 Mon Sep 17 00:00:00 2001 From: Yige Date: Sat, 26 Sep 2026 15:53:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(compute):=20Codex=20=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E9=9D=A2=E5=8E=BB=E6=8E=89=20gpt-6-sol=20/?= =?UTF-8?q?=20gpt-6-luna=20=E7=9A=84=20none=20=E6=A1=A3=20(#107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OpenAI 下发给 Codex 的模型元数据(supported_reasoning_levels)里,ChatGPT 订阅接入面没有任何模型支持 none。#106 给 gpt-6-sol、gpt-6-luna 声明了 none, 客户端据此在 AI 审批等关闭思考的调用上发送 reasoning.effort=none,上游 400, 审批拿不到建议即自动拒绝,Agent 的每个中风险操作都被拒(2026-09-26 达摩院 176 在 win-test 上复现)。 去掉 none 后客户端对这两个模型不发关闭参数,改用上游默认档位;已在 win-test 真机验证 gpt-6-sol 的 AI 审批恢复为 200、Write 正常执行。model-specs 中的 off 是模型本身的事实,保持不变,本次只收紧 Codex 接入面。 presetDataVersion 121 → 122。 --- __tests__/validate.test.mjs | 12 ++++++++++++ compute/providers/openai-codex.json | 2 -- manifest.json | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/__tests__/validate.test.mjs b/__tests__/validate.test.mjs index f6f686d..64ce9d9 100644 --- a/__tests__/validate.test.mjs +++ b/__tests__/validate.test.mjs @@ -631,6 +631,18 @@ describe('真实数据全量校验', () => { } }) + it('Codex 订阅接入面不声明 none 档:ChatGPT 后端不接受关闭思考', () => { + // OpenAI 下发给 Codex 的模型元数据(models_cache.json#supported_reasoning_levels)里, + // 该接入面没有任何模型支持 none。声明了 none,客户端会在 AI 审批等关闭思考的调用上发 + // reasoning.effort=none,上游 400,审批拿不到建议即自动拒绝(2026-09-26 gpt-6-sol 真机复现)。 + // 不声明时客户端对这类模型不发关闭参数,改用上游默认档位。 + const codex = JSON.parse(readFileSync(join(ROOT, 'compute', 'providers', 'openai-codex.json'), 'utf8')) + for (const model of codex.models) { + const efforts = model.extra?.reasoning?.supportedEfforts ?? [] + assert.equal(efforts.includes('none'), false, `${model.modelName} 不应在 Codex 订阅接入面声明 none`) + } + }) + it('GLM-5.3-FlashX 仅加入共享规格,避免假定中国区智谱 API 已提供该 ID', () => { const provider = JSON.parse(readFileSync(join(ROOT, 'compute', 'providers', 'zhipu.json'), 'utf8')) const specs = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'zhipu.json'), 'utf8')).specs diff --git a/compute/providers/openai-codex.json b/compute/providers/openai-codex.json index b4d6031..b9f6746 100644 --- a/compute/providers/openai-codex.json +++ b/compute/providers/openai-codex.json @@ -45,7 +45,6 @@ "extra": { "reasoning": { "supportedEfforts": [ - "none", "low", "medium", "high", @@ -78,7 +77,6 @@ "extra": { "reasoning": { "supportedEfforts": [ - "none", "low", "medium", "high", diff --git a/manifest.json b/manifest.json index 84fda99..82539bb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0.0", - "presetDataVersion": 121, - "updatedAt": "2026-09-25", + "presetDataVersion": 122, + "updatedAt": "2026-09-26", "description": "DesireCore 官方配置中心" }