Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/types/src/providers/openrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Consider adding a short note (or link to OpenRouter docs/changelog) explaining that GLM 4.5 Air supports the reasoning parameter and why we include it here. This helps future readers verify intent without re-checking the API.

// 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",
Expand Down
2 changes: 2 additions & 0 deletions src/api/providers/fetchers/__tests__/openrouter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ describe("OpenRouter API", () => {
"google/gemini-2.5-flash-lite-preview-06-17",
"google/gemini-2.5-pro",
"anthropic/claude-opus-4.1", // Not yet available in OpenRouter API
"z-ai/glm-4.5-air", // Not yet in test fixture
"z-ai/glm-4.5-air:free", // Not yet in test fixture
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Suggest turning this into a TODO with a removal condition, e.g., TODO: Remove once OpenRouter fixtures include GLM 4.5 Air models so we can assert them directly. This makes the follow-up action explicit.

])

const expectedReasoningBudgetModels = Array.from(OPEN_ROUTER_REASONING_BUDGET_MODELS)
Expand Down
Loading