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
feat(zai): expose configurable max output tokens for GLM models (#161) (#274)
* feat(zai): expose configurable max output tokens for GLM models (#161)
Add a standalone "max output tokens" slider for models that advertise
`supportsMaxTokens` (e.g. Z.ai GLM) but do not surface a reasoning budget, and
send the chosen value to the provider as `max_tokens`.
- ThinkingBudget: extract the max-tokens slider into a small render helper shared
by the standalone control and the reasoning-budget branch, and surface it for
binary-reasoning models that also support a configurable max.
- getModelMaxOutputTokens: honor the user's `modelMaxTokens` override for
`supportsMaxTokens` models (capped at the model ceiling) instead of the 20%
context-window clamp, so the runtime budget matches what is sent to the provider.
- ProviderSettingsManager.export(): preserve `modelMaxTokens` for configurable-max
models while dropping it for models that support neither reasoning budgets nor a
configurable max.
* Update src/shared/api.ts
* Update webview-ui/src/components/settings/ThinkingBudget.tsx
---------
Co-authored-by: Armando Vaquera <263793884+proyectoauraorg@users.noreply.github.com>
Co-authored-by: edelauna <54631123+edelauna@users.noreply.github.com>
0 commit comments