Skip to content

add OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX to override 32k default#5679

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
junmediatek:feat/output-token-max-env
Dec 17, 2025
Merged

add OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX to override 32k default#5679
rekram1-node merged 1 commit into
anomalyco:devfrom
junmediatek:feat/output-token-max-env

Conversation

@junmediatek
Copy link
Copy Markdown
Contributor

@junmediatek junmediatek commented Dec 17, 2025

Currently, the default max output token for opencode is 32,000, however, the latest models such as GPT, Gemini, and Claude now support max output tokens exceeding 64,000, so the current setting of 32,000 is no longer suitable.

Therefore, it is necessary to add a method to modify the max output token.

@junmediatek junmediatek force-pushed the feat/output-token-max-env branch from 89f0d42 to 3c59eec Compare December 17, 2025 08:44
@junmediatek
Copy link
Copy Markdown
Contributor Author

@rekram1-node could you help to check this PR?

@rekram1-node rekram1-node changed the title Feat/output token max env add OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX to override 32k default Dec 17, 2025
@rekram1-node
Copy link
Copy Markdown
Collaborator

lgtm

@rekram1-node rekram1-node merged commit 1e4bfbc into anomalyco:dev Dec 17, 2025
3 checks passed
rekram1-node pushed a commit that referenced this pull request Dec 27, 2025
@junmediatek junmediatek deleted the feat/output-token-max-env branch December 31, 2025 01:57
@junmediatek junmediatek restored the feat/output-token-max-env branch December 31, 2025 01:57
@junmediatek junmediatek deleted the feat/output-token-max-env branch February 27, 2026 07:34
@junmediatek junmediatek restored the feat/output-token-max-env branch February 27, 2026 07:35
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants