You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: cap compaction and completion max_tokens to provider limits
Compaction requests sent max_tokens equal to the model's full context
window whenever maxOutputSize was not configured, which strict
OpenAI-compatible providers reject with 400 invalid_request_error
(e.g. "Invalid max_tokens value, the valid range of max_tokens is
[1, 393216]"). Cap compaction output at 128k by default and size
chat-completions caps to the remaining context window.
Fix context compaction failing with provider "Invalid max_tokens" errors by capping requested completion tokens to the remaining context window and a safe output ceiling instead of the full context window size.
0 commit comments