今天折腾 OpenClaw 的时候,发现当前版本(我这里是 OpenClaw 2026.3.2 )没法使用 /think xhigh 给 gpt-5.4 设置 xhigh 模式,另外也没有现成的 fast mode 支持。
所以我做了一个小项目:openclaw-gpt-xhigh-shim 。
它是一个轻量适配层 / 运行时补丁,在运行时做最小化 hook,把 gpt-5.4 的 xhigh 支持补上,并且可选地给 OpenAI Responses 请求注入 fast mode 对应的参数。
目前已经验证:
gpt-5.4可以正常走xhigh,只需要 /think xhigh 就行- 开启 fast mode 后,请求里能看到
service_tier: "priority" - 整个方案尽量只针对
gpt-5.4生效,其他模型和 OpenClaw 原有逻辑尽量不碰
(本项目全靠我在飞书上和 openclaw + gpt 5.4 1M 对话完成,这体验真是太棒啦)
项目地址:
效果演示:
!!注意,这只是 openclaw 更新前作为适配的一个小补丁,等 openclaw 更新了对 gpt-5.4 的支持就可以卸载啦
祝大佬们玩得开心!
另注,在 openclaw 中添加 gpt-5.4 模型的配置:
{
"id": "gpt-5.4",
"name": "GPT-5.4",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 2.5,
"output": 15,
"cacheRead": 0.25,
"cacheWrite": 0
},
"contextWindow": 1048576,
"maxTokens": 128000
}