[PR #7970] fix: max completion tokens error #12576

Closed
opened 2026-02-16 18:17:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7970

State: closed
Merged: Yes


What does this PR do?

Passes the max_completion_tokens parameter instead of max_tokens parameter in Cloudflare AI Gateway.

How did you verify your code works?

Before:

image

After:

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7970 **State:** closed **Merged:** Yes --- ### What does this PR do? Passes the `max_completion_tokens` parameter instead of `max_tokens` parameter in Cloudflare AI Gateway. ### How did you verify your code works? Before: <img width="1266" height="258" alt="image" src="https://github.com/user-attachments/assets/e799f6af-af31-4776-958a-dc62aa9ce8f9" /> After: <img width="1266" height="258" alt="image" src="https://github.com/user-attachments/assets/3dc678a4-ef16-4bcf-9833-6c730cc23182" />
yindo added the pull-request label 2026-02-16 18:17:28 -05:00
yindo closed this issue 2026-02-16 18:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12576