Commit e36f2af
feat(ai-openrouter): update model catalog from OpenRouter API (#400)
* feat(ai-openrouter): update model catalog from OpenRouter API
Regenerate model-meta.ts from the current OpenRouter /api/v1/models
endpoint (346 models total, +57 new, -59 deprecated).
Notable additions:
- openai/gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.4-pro
- anthropic/claude-sonnet-4.6, claude-opus-4.6
- z-ai/glm-5-turbo, glm-5, glm-4.7-flash
- xiaomi/mimo-v2-pro, mimo-v2-omni
- minimax/minimax-m2.7, minimax-m2.5
- google/gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview
- mistralai/mistral-small-2603
- moonshotai/kimi-k2.5
- qwen/qwen3.5-* series
Fixes in conversion script:
- Map snake_case supported_parameters from the API to camelCase
keys matching OpenRouterBaseOptions (frequency_penalty →
frequencyPenalty, etc.)
- Skip duplicate openrouter/auto entries when the model is already
in the API catalog
Other changes:
- Add parallelToolCalls to OpenRouterBaseOptions
- Update image-adapter test to use non-deprecated model ID
* chore: add changeset and apply prettier formatting
- Add minor changeset for @tanstack/ai-openrouter
- Apply prettier formatting to model-meta.ts and scripts
* fix: filter excludedParams from runtime supports array
The supports array in generated model metadata included tools,
reasoning_effort, and structured_outputs which were already filtered
from the TypeScript Pick<> types, creating a runtime/type mismatch.
* fix: align parallelToolCalls JSDoc across interfaces
Add missing @default true annotation to OpenRouterBaseOptions to
match OpenRouterCommonOptions.
* ci: apply automated fixes
* chore: refresh model catalog from OpenRouter API
+1 new model (kwaipilot/kat-coder-pro-v2), -2 removed free variants
(mistralai/mistral-small-3.1-24b-instruct:free, qwen/qwen3-4b:free),
plus pricing/parameter updates across existing models.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>1 parent a8a4465 commit e36f2af
6 files changed
Lines changed: 11106 additions & 16019 deletions
File tree
- .changeset
- packages/typescript/ai-openrouter
- src
- text
- tests
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments