anomalyco / anomalyco/opencode

Windows QWEN 3.8 Max - Range of max_tokens should be [1, 131072]

Open
#40,770 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Follow setup from Alibaba Cloud
  2. Switch to QWEN 3.8 Max
  3. Ask anything
Screenshot and/or share link

No response

Operating System

Win 10

Terminal

Cmder, desktop app

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.