Skip to content

fix: cloudflare-workers-ai: glm-5.3-flash limit 1310720 exceeds gateway max 1048576 (same as #4422 for glm-5.2) - #5825

Merged
rekram1-node merged 1 commit into
devfrom
issue-5824
Aug 30, 2026
Merged

fix: cloudflare-workers-ai: glm-5.3-flash limit 1310720 exceeds gateway max 1048576 (same as #4422 for glm-5.2)#5825
rekram1-node merged 1 commit into
devfrom
issue-5824

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Cloudflare Workers AI @cf/zai-org/glm-5.3-flash had limit.context / limit.output set to 1,310,720, which comes from catalog/search data and is above AI Gateway’s max (max_completion_tokens1,048,576). Clients that derive max_tokens from catalog output (e.g. pi) then get HTTP 400. Limits are corrected to match Cloudflare’s documented context window.

Changes

File: providers/cloudflare-workers-ai/models/@cf/zai-org/glm-5.3-flash.toml

Field Old New
limit.context 1_310_720 1_048_576
limit.output 1_310_720 1_048_576

Leading comment notes the gateway cap and docs source.

Evidence

Lab models/zhipuai/glm-5.3-flash.toml (context = 1_000_000, output = 131_072) was left unchanged; this is a Cloudflare host constraint, not a lab metadata correction.

Validation

  • Compared provider TOML to Cloudflare first-party model page (context 1,048,576).
  • Cross-checked issue AIG error for the 1,048,576 completion-token ceiling.
  • Did not run bun validate or live API calls (no shell per instructions).

Review notes

Closes #5824

Automated by the issue fixer: https://github.com/anomalyco/models.dev/actions/runs/33266781527

@rekram1-node
rekram1-node merged commit 489a3f4 into dev Aug 30, 2026
1 check passed
@rekram1-node
rekram1-node deleted the issue-5824 branch August 30, 2026 03:34
@jpenilla

jpenilla commented Aug 30, 2026

Copy link
Copy Markdown

it seems like this got partially reverted by the auto update - pi should be ok now but just flagging for posterity

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.

cloudflare-workers-ai: glm-5.3-flash limit 1310720 exceeds gateway max 1048576 (same as #4422 for glm-5.2)

2 participants