feat: add GLM 4.5 Air models to OpenRouter reasoning budget models

- Added z-ai/glm-4.5-air and z-ai/glm-4.5-air:free to OPEN_ROUTER_REASONING_BUDGET_MODELS
- These models support reasoning parameters as confirmed by OpenRouter API
- Fixes issue where GLM 4.5 Air models were not appearing in chat interface

Fixes #8313
This commit is contained in:
Roo Code 2025-09-25 16:11:20 +00:00
parent bf1aafad9b
commit 61fa160c26

View file

@ -86,6 +86,8 @@ export const OPEN_ROUTER_REASONING_BUDGET_MODELS = new Set([
"google/gemini-2.5-flash-preview-05-20",
"google/gemini-2.5-flash",
"google/gemini-2.5-flash-lite-preview-06-17",
"z-ai/glm-4.5-air",
"z-ai/glm-4.5-air:free",
// Also include the models that require the reasoning budget to be enabled
// even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
"anthropic/claude-3.7-sonnet:thinking",