chore(ai-openrouter): upgrade @openrouter/sdk from 0.13.20 to 1.x
メンテナーはふだん 1 日以内に返信
@AlemTuzlak がすでに取り組んでいます。
2026年10月3日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the SDK 1.0 changelog and the dependency entries in packages/ai-openrouter/package.json and testing/e2e/package.json. Inspect the listed text, responses, image, video, HTTPClient, model-type, and provider-sync entry points, then run the e2e suite. Done means the SDK is upgraded, affected adapters and hooks still work, and the @tanstack/ai-openrouter changeset is included.
索引モデルが issue の本文から書いたものです。
説明
What
@openrouter/sdk is pinned at 0.13.20. The latest release is 1.4.21 (published 2026-10-02), one major version ahead.
Pinned in:
packages/ai-openrouter/package.jsontesting/e2e/package.json
Why
- We are a full major version behind the SDK that
@tanstack/ai-openrouterwraps. - New OpenRouter API fields and endpoints only reach the adapter through the SDK's generated types.
- The longer the gap, the larger the eventual migration.
Scope
The SDK is the core dependency of every OpenRouter adapter, so the upgrade touches all of them:
- Text (chat completions):
createOpenRouterText - Responses (beta):
createOpenRouterResponsesText - Image
- Video:
videoGeneration.generate/getGeneration/getVideoContent -
HTTPClienthooks used by the e2e suite to injectX-Test-Id(testing/e2e/src/lib/providers.ts) - Type imports from
@openrouter/sdk/models(for exampleVideoGenerationRequest,ContentPartImage) -
scripts/sync-provider-models.ts, if it reads SDK types - Changeset for
@tanstack/ai-openrouter
Notes
- Review the SDK's 1.0 changelog for breaking changes before starting.
- Video job creation: both
0.13.20and1.4.21accept only HTTP202fromPOST /api/v1/videos.@copilotkit/aimock1.43 answers200, so its built-in OpenRouter video mock fails with the real SDK on either version. The upgrade does not fix that. It needs a fix in aimock or a custom mount in the e2e suite. - Found while working on #539 / #1541.
- 主要言語
- TypeScript
- スター
- 3.3k
- フォーク
- 378
- 平均マージ
- 1日 1分
- マージ済み PR(30日)
- 208
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/ai のほかの issue
-
openai-base: a Responses max_output_tokens cutoff ends as RUN_ERROR without usage instead of finishReason 'length'対応中かも @tombeckenham が 4 日前に担当しました。 オープンhas-pr waiting-on: maintainer
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
TanStack/ai#1916 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
openai-base: leaving a Responses stream at `response.completed` aborts its request, so complete calls are logged as client-closed (499)対応中かも @AlemTuzlak が今日担当しました。 オープンhas-pr waiting-on: maintainer
メンテナーはふだん 1 日以内に返信
-
StreamProcessor folds long text and tool-call streams in quadratic memory and time対応中かも @jherr が今日担当しました。 オープンwaiting-on: maintainer
メンテナーはふだん 1 日以内に返信
-
ai-harness: view.dispose() doesn't cancel snapshot, transcript or describe requests対応中かも @AlemTuzlak が 1 日前に担当しました。 オープンneeds-repro waiting-on: maintainer
TanStack/ai#1960 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
ai-anthropic: 400 on signed thinking blocks after compaction rewrites history (missing block_binding drop_block)対応中かも @tombeckenham が 1 日前に担当しました。 オープンwaiting-on: maintainer
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JuliusBrussee/caveman#1449 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
linagora/twake-calendar-frontend#1924 ·
メンテナーはふだん 1 日以内に返信
-
Add: Class TV Modaオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libnativeapi/nativeapi#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GiganticMinecraft/seichi-playguide#183 ·
メンテナーはふだん 1 日以内に返信