fix(openclaw): clamp GPT-5.4 output tokens - #986
Conversation
5f1efe1 to
aab3705
Compare
aab3705 to
3210f5c
Compare
|
I think there is one proxy-alias path still uncovered here. I checked this on the current PR head. These two spellings resolve to the same upstream model ( With the current I also couldn't find a test exercising the new |
|
@Galius5136 thanks for looking into it! I made it more general and added a small test. |
|
@kywch confirmed, both spellings now hit the cap:
The new parametrized test also fails on Thanks for the quick turnaround! |
Summary
Clamp OpenClaw GPT-5.4 output tokens to the provider limit.
Root cause
OpenClaw sent max_tokens=171802 while GPT-5.4 accepts at most 128000. The ACP path uses internal alias benchflow-openai-gpt-5.4, so raw gpt-5.4 matching alone misses live requests.
Changes
Scope
OpenClaw + GPT-5.4 only. No global model cap, routing change, or OpenClaw runtime-pin change. #977 is adjacent only.
Validation