mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-10-21 05:24:25 +08:00
fix(compute): Codex 订阅接入面去掉 gpt-6-sol / gpt-6-luna 的 none 档 (#107)
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。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user