chore(ai-openrouter): upgrade @openrouter/sdk from 0.13.20 to 1.x
Maintainer thường phản hồi trong vòng 1 ngày
@AlemTuzlak đang làm issue này rồi.
Từ ngày 3/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design, testing-qa
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.3k
- Fork
- 378
- Merge trung bình
- 1 ngày 1 phút
- Pull request đã merge (30 ngày)
- 208
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TanStack/ai
-
openai-base: a Responses max_output_tokens cutoff ends as RUN_ERROR without usage instead of finishReason 'length'Có thể đã có người làm @tombeckenham đã nhận 4 ngày trước. Đang mởhas-pr waiting-on: maintainer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
TanStack/ai#1916 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
openai-base: leaving a Responses stream at `response.completed` aborts its request, so complete calls are logged as client-closed (499)Có thể đã có người làm @AlemTuzlak đã nhận hôm nay. Đang mởhas-pr waiting-on: maintainer
TanStack/ai#1965 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
StreamProcessor folds long text and tool-call streams in quadratic memory and timeCó thể đã có người làm @jherr đã nhận 1 ngày trước. Đang mởwaiting-on: maintainer
TanStack/ai#1963 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-harness: view.dispose() doesn't cancel snapshot, transcript or describe requestsCó thể đã có người làm @AlemTuzlak đã nhận 1 ngày trước. Đang mởneeds-repro waiting-on: maintainer
TanStack/ai#1960 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-anthropic: 400 on signed thinking blocks after compaction rewrites history (missing block_binding drop_block)Có thể đã có người làm @tombeckenham đã nhận 2 ngày trước. Đang mởwaiting-on: maintainer
TanStack/ai#1959 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Remove unused dependenciesCó thể đã có người làm @alastair-smith đã nhận hôm nay. Đang mởchore other
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alastair-smith/card-games#384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
code-yeongyu/senpi#5571 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nexu-io/open-design#9262 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
friction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kentcdodds/kody#4753 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
lingdojo/kana-dojo#33508 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày