sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

opencode使用gpt模型无法切换推理强度

Open 1402771410 opened this issue 8 months ago • 6 comments

哪位大佬知道我在opencode使用gpt的模型,切换推理强度无论是low还是high以及xhigh,sub2api内使用记录都是Medium。

Image Image

1402771410 avatar Mar 30 '26 09:03 1402771410

已经解决: 修改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"}
          }
        },
Image Image

1402771410 avatar Mar 30 '26 10:03 1402771410

已经解决: 修改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"}
          }
        },

Image Image

太谢谢你了

nxxxsooo avatar May 05 '26 05:05 nxxxsooo

感谢,帮上大忙了

WeltAine avatar May 21 '26 16:05 WeltAine

有效,感谢

Ming3z avatar Jun 05 '26 03:06 Ming3z

有效,感谢楼主

16677 avatar Jul 08 '26 17:07 16677

有效,感谢分享,记得再加个max

"variants": {
            "low": {"reasoningEffort": "low"},
            "medium": {"reasoningEffort": "medium"},
            "high": {"reasoningEffort": "high"},
            "xhigh": {"reasoningEffort": "xhigh"},
            "max": {"reasoningEffort": "max"}
          }

230109 avatar Aug 06 '26 00:08 230109