Repository navigation
Raise MAX_TOKENS_CAP to 64000 for the 3d studio's scenes - #4
Merged
Merged
Conversation
Oct 5: a scene request failed with "the answer ran out of room". On Claude Opus 5.5 thinking cannot be turned off and counts against max_tokens, and a scene with windows on every house is long JSON; the gateway clamped every request to 16000, so the reply stopped before its JSON closed. Only tokens generated are billed, so the higher cap costs nothing on short answers; the daily limit still counts requests. A test reads wrangler.toml so the cap is not silently lowered again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015yy9hSCgHQ5WYRZu4JMuW9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A scene request in the 3d studio failed with "the answer ran out of room".
Why
max_tokens.Change
MAX_TOKENS_CAPgoes from 16000 to 64000. The comment and README are updated to say why.wrangler.tomland fails if the cap drops below 64000. The cap is clamped silently, so lowering it would otherwise show up only as cut-off answers.The matching studio change, which asks for 64000 and for compact JSON, is in reportbase/3d. Merging this deploys the Worker.
Tests
npm test: 31 pass, 0 fail.🤖 Generated with Claude Code
https://claude.ai/code/session_015yy9hSCgHQ5WYRZu4JMuW9
Generated by Claude Code