[GH-ISSUE #196] max toknes in api only got 24576 #102

Closed
opened 2026-11-04 01:39:55 +07:00 by bsakaguchi · 2 comments
Owner

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 s

But when accessing via the OpenAI‑compatible API endpoint, I get:
[strata] thinking: 195 of max 24576 tokens, 39.7 tok/s, 9 s

The maximum context token limit drops to 24576 for API requests. How can I increase this max context token size for the API mode?

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 s` But when accessing via the OpenAI‑compatible API endpoint, I get: `[strata] thinking: 195 of max 24576 tokens, 39.7 tok/s, 9 s` The maximum context token limit drops to 24576 for API requests. How can I increase this max context token size for the API mode?
Author
Owner

@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.

<!-- gh-comment-id:5904770102 --> @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.
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

24,576 is the max_tokens your 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.

<!-- gh-comment-id:5908103981 --> @Niko1221 commented on GitHub (Sep 30, 2026): 24,576 is the `max_tokens` your 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#102
No description provided.