chore(ai-openrouter): upgrade @openrouter/sdk from 0.13.20 to 1.x
I maintainer di solito rispondono entro 1 giorno
@AlemTuzlak ci sta già lavorando.
Dal 3/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design, testing-qa
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 3.3k
- Fork
- 378
- Merge medio
- 1g 2h
- PR unite (30g)
- 219
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TanStack/ai
-
openai-base: a Responses max_output_tokens cutoff ends as RUN_ERROR without usage instead of finishReason 'length'Forse già presa @tombeckenham l’ha presa 5 giorni fa. Apertahas-pr waiting-on: maintainer
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
TanStack/ai#1916 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
openai-base: leaving a Responses stream at `response.completed` aborts its request, so complete calls are logged as client-closed (499)Forse già presa @AlemTuzlak l’ha presa 1 giorno fa. Apertahas-pr waiting-on: maintainer
TanStack/ai#1965 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
StreamProcessor folds long text and tool-call streams in quadratic memory and timeForse già presa @jherr l’ha presa 1 giorno fa. Apertawaiting-on: maintainer
TanStack/ai#1963 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
ai-harness: view.dispose() doesn't cancel snapshot, transcript or describe requestsForse già presa @AlemTuzlak l’ha presa 2 giorni fa. Apertaneeds-repro waiting-on: maintainer
TanStack/ai#1960 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
ai-anthropic: 400 on signed thinking blocks after compaction rewrites history (missing block_binding drop_block)Forse già presa @tombeckenham l’ha presa 2 giorni fa. Apertawaiting-on: maintainer
TanStack/ai#1959 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
vfarcic/dot-agent-deck#2079 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Broken links in the docsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
status:in-linear
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
n8n-io/n8n#43006 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
🔊 a11y
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
betagouv/mon-entreprise#4726 ·
I maintainer di solito rispondono entro 9 giorni