Skip to content

Commit 80dad77

Browse files
AdemBenAbdallahtombeckenhamclaudeautofix-ci[bot]
authored
chore(ai-openrouter): update OpenRouter SDK (#824)
* chore(ai-openrouter): update OpenRouter SDK * chore(ai-openrouter): bump @openrouter/sdk to 0.13.20 Move to the latest mature 0.13.x release. 0.13.20 fixes the getVideoContent download helper (now requests Accept: video/mp4 and matches the stream with ctype: video/mp4) and ships a single rootDir key in the published tsconfig (#712). 0.13.21 is the newest release but is blocked by the workspace minimumReleaseAge supply-chain policy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: apply automated fixes --------- Co-authored-by: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 3ae96e6 commit 80dad77

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

.changeset/fresh-openrouter-sdk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-openrouter': patch
3+
---
4+
5+
Update `@openrouter/sdk` to `0.13.20`. This removes the duplicate `rootDir` key from the published SDK package metadata (fixes #712) and picks up the fix to the `getVideoContent` download helper, which previously requested `Accept: application/octet-stream` and matched the streamed 200 response without a content type, so the upstream `video/mp4` body failed to match. The SDK now requests `Accept: video/mp4` and matches the stream with `ctype: "video/mp4"`.

packages/ai-openrouter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"model-router"
6161
],
6262
"dependencies": {
63-
"@openrouter/sdk": "0.12.35",
63+
"@openrouter/sdk": "0.13.20",
6464
"@tanstack/ai-utils": "workspace:*"
6565
},
6666
"devDependencies": {

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@copilotkit/aimock": "^1.34.0",
1515
"@modelcontextprotocol/sdk": "^1.29.0",
16-
"@openrouter/sdk": "0.12.35",
16+
"@openrouter/sdk": "0.13.20",
1717
"@opentelemetry/api": "^1.9.0",
1818
"@tailwindcss/vite": "^4.1.18",
1919
"@tanstack/ai": "workspace:*",

0 commit comments

Comments
 (0)