sub2api
sub2api copied to clipboard
opencode使用gpt模型无法切换推理强度
哪位大佬知道我在opencode使用gpt的模型,切换推理强度无论是low还是high以及xhigh,sub2api内使用记录都是Medium。
已经解决: 修改opencode.json内的模型配置信息: 原来信息是
"gpt-5.3-codex": {
"name": "GPT-5.3 Codex",
"limit": {
"context": 400000,
"output": 128000
},
"options": {
"store": false
},
"variants": {
"low": {},
"medium": {},
"high": {},
"xhigh": {}
}
},
修改为:
"gpt-5.3-codex": {
"id": "gpt-5.3-codex",
"name": "GPT-5.3 Codex",
"limit": {
"context": 400000,
"output": 128000
},
"options": {
"store": false
},
"variants": {
"low": {"reasoningEffort": "low"},
"medium": {"reasoningEffort": "medium"},
"high": {"reasoningEffort": "high"},
"xhigh": {"reasoningEffort": "xhigh"}
}
},
已经解决: 修改opencode.json内的模型配置信息: 原来信息是
"gpt-5.3-codex": { "name": "GPT-5.3 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } },修改为:
"gpt-5.3-codex": { "id": "gpt-5.3-codex", "name": "GPT-5.3 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {"reasoningEffort": "low"}, "medium": {"reasoningEffort": "medium"}, "high": {"reasoningEffort": "high"}, "xhigh": {"reasoningEffort": "xhigh"} } },
![]()
太谢谢你了
感谢,帮上大忙了
有效,感谢
有效,感谢楼主
有效,感谢分享,记得再加个max
"variants": {
"low": {"reasoningEffort": "low"},
"medium": {"reasoningEffort": "medium"},
"high": {"reasoningEffort": "high"},
"xhigh": {"reasoningEffort": "xhigh"},
"max": {"reasoningEffort": "max"}
}
