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
chore(ai-openrouter): expand changeset, wire format into generate:models
Rewrite the ai-openrouter changeset to reflect the full scope of the PR:
the 0.12.13 SDK bump (not 0.9.11), the ChatGenerationParams -> ChatRequest
rename, and the deliberate removal of topK/topA/minP/repetitionPenalty/
includeReasoning/verbosity/webSearchOptions from OpenRouterBaseOptions
so callers get a TS error instead of silent stripping.
Append pnpm format to generate:models so regenerated model-meta and
provider files land formatted in a single command. Remove the now-unused
compare-openrouter-models.ts script — the models file is sorted
alphabetically so a plain git diff is sufficient.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/giant-garlics-crash.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,13 @@
2
2
'@tanstack/ai-openrouter': patch
3
3
---
4
4
5
-
- Bump `@openrouter/sdk` to 0.9.11
6
-
- Updated model list with latest models (Opus 4.6, Sonnet 4.6, Gemini 3.1 Pro, etc.)
7
-
- Native structured output support for OpenRouter
8
-
- Refactored text-provider-options to derive types from SDK's `ChatGenerationParams`
9
-
- Refactored options passthrough to use camelCase naming convention
10
-
- Improved error handling
5
+
- Upgrade `@openrouter/sdk` to 0.12.13 (from 0.8.0)
6
+
- Migrate adapters and tests to the SDK's renamed chat types (`ChatGenerationParams` → `ChatRequest`, `ChatResponse` → `ChatResult`) and the renamed `chatRequest` key on `chat.send`
7
+
- Derive `text-provider-options` types from the SDK's `ChatRequest` so provider options stay in lockstep with the SDK surface
8
+
- Drop `topK` / `topA` / `minP` / `repetitionPenalty` / `includeReasoning` / `verbosity` / `webSearchOptions` from `OpenRouterBaseOptions` now that the SDK narrows `ChatRequest` to OpenAI-compatible fields — callers passing these previously saw them silently stripped at runtime, and now get a TypeScript error instead
9
+
- Add those same keys to `excludedParams` in the model-catalog generator so future syncs don't reintroduce them
10
+
- Add native structured output support using JSON Schema response formats
11
+
- Refactor options passthrough to use camelCase naming convention
12
+
- Refresh the model catalog with the latest OpenRouter models (Opus 4.6, Sonnet 4.6, Gemini 3.1 Pro, etc.) and remove the deprecated `openrouter/auto` model
13
+
- Unify the outbound request payload envelope
14
+
- Improve error handling and add tests for nested payloads, structured output parsing, and error cases
0 commit comments