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

Abierto
#1,610 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@AlemTuzlak ya está trabajando en esto.

Desde el 3/10/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
3.3k
Forks
378
Merge medio
1 d 3 h
PR fusionados (30 d)
226

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TanStack/ai

Todos los issues de TanStack/ai

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.