chore(ai-openrouter): upgrade @openrouter/sdk from 0.13.20 to 1.x

オープン
#1,610 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

waiting-on: maintainer

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.json
  • testing/e2e/package.json

Why

  • We are a full major version behind the SDK that @tanstack/ai-openrouter wraps.
  • 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
  • HTTPClient hooks used by the e2e suite to inject X-Test-Id (testing/e2e/src/lib/providers.ts)
  • Type imports from @openrouter/sdk/models (for example VideoGenerationRequest, 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.20 and 1.4.21 accept only HTTP 202 from POST /api/v1/videos. @copilotkit/aimock 1.43 answers 200, 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/ai のほかの issue

TanStack/ai の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。