chore: sync model metadata from OpenRouter - #1048
Conversation
🚀 Changeset Version Preview23 package(s) bumped directly, 29 bumped as dependents. 🟥 Major bumps
🟨 Minor bumps
🟩 Patch bumps
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many --targets=build --exclude=examples/... |
❌ Failed | 7s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-08-12 16:50:02 UTC
harshlocham
left a comment
There was a problem hiding this comment.
Request changes — CI is red after this model sync
Ran the PR quality checks locally. Passing: sherif, knip, docs, kiira, oxlint, test:dts. Failing: test:types, test:lib, build/test:build.
1. Blocking — OpenRouter prediction breaks @tanstack/ai-openrouter:build / test:types
OpenRouter now advertises supported_parameters: ["prediction"] for:
mistralai/codestral-2508openai/gpt-4oopenai/gpt-4o-2024-05-13openai/gpt-4o-2024-08-06openai/gpt-4o-2024-11-20openai/gpt-4o-miniopenai/gpt-4o-mini-2024-07-18
The converter generates:
Pick<OpenRouterBaseOptions, ..., 'prediction', ...>OpenRouterBaseOptions is derived from @openrouter/sdk's ChatRequest, which does not expose a prediction field. This causes TS2344 during build and cascades into the OpenRouter type tests.
The converter already documents the intended behavior: parameters not supported by the SDK should be excluded because they are stripped by the outbound schema.
Suggested fix: add 'prediction' to excludedParams in scripts/convert-openrouter-models.ts, regenerate model-meta.ts, and verify @tanstack/ai-openrouter:build and test:types pass.
2. Blocking — Anthropic tool capability map is incomplete
claude-opus-5 and claude-opus-5-fast were added to:
ANTHROPIC_MODELSAnthropicChatModelProviderOptionsByNameAnthropicModelInputModalitiesByName
but not to AnthropicChatModelToolCapabilitiesByName.
As a result, the exhaustiveness check in tools-per-model-type-safety.test.ts fails.
Suggested fix: add tool capability entries for the new models and verify any other manually maintained capability maps remain exhaustive.
3. Blocking — Grok unit test is stale
GROK_CHAT_MODELS now includes grok-4.5, but grok-adapter.test.ts still asserts the previous list:
expect(GROK_CHAT_MODELS).toEqual([
'grok-build-0.1',
'grok-4.3',
])Suggested fix: update the expected model list to include grok-4.5.
End with the last suggested fix and nothing else.
a5ca6a3 to
fcb5d2d
Compare
c5c66ce to
5929856
Compare
5929856 to
dc0f690
Compare
dc0f690 to
7435a46
Compare

Automated daily sync of model metadata from the OpenRouter API.