anomalyco / anomalyco/opencode
Windows QWEN 3.8 Max - Range of max_tokens should be [1, 131072]
Open
@rekram1-node is already working on this.
Since Aug 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Switching to QWEN 3.8 Max giving always the same error (setup from Alibaba Cloud):
data: {"error":{"code":"invalid_parameter_error","param":null,"message":"Range of max_tokens should be [1, 131072]","type":"invalid_request_error"},"id":"chatcmpl-4c782706-981b-4ab6-a38e-3478f7c37a7e"}
Both terminal and desktop versions.
QWEN 3.7 Max and other models are working.
Plugins
No response
OpenCode version
1.18.13
Steps to reproduce
- Follow setup from Alibaba Cloud
- Switch to QWEN 3.8 Max
- Ask anything
Screenshot and/or share link
No response
Operating System
Win 10
Terminal
Cmder, desktop app
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.