mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #196] max toknes in api only got 24576 #102
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fayamber on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/196
When using Strata via the built‑in browser Web UI, the log shows:
[strata] thinking: 302 of max 112580 tokens, 44.0 tok/s, 17 sBut when accessing via the OpenAI‑compatible API endpoint, I get:
[strata] thinking: 195 of max 24576 tokens, 39.7 tok/s, 9 sThe maximum context token limit drops to 24576 for API requests. How can I increase this max context token size for the API mode?
@Alex668866 commented on GitHub (Sep 30, 2026):
That’s usually set by the API adapter or the model profile behind that route, not by an OpenAI request field. Check whether the API server uses a separate config capped at 24,576 tokens.
@Niko1221 commented on GitHub (Sep 30, 2026):
24,576 is the
max_tokensyour client sends: the output limit, not the context. Raise it in the client, or leave it out, and Strata uses the rest of the context for the answer.