Skip to content

chore(core): bump @aihubmix/ai-sdk-provider to ^2.2.1 - #1421

Open
0genlab wants to merge 3 commits into
VoltAgent:mainfrom
0genlab:chore/bump-aihubmix-provider-v2
Open

0genlab wants to merge 3 commits into
VoltAgent:mainfrom
0genlab:chore/bump-aihubmix-provider-v2

Conversation

@0genlab

@0genlab 0genlab commented Sep 24, 2026 •

Copy link
Copy Markdown

PR Checklist

  • The commit message follows our guidelines
  • Changesets have been added

What is the current behavior?

@voltagent/core depends on @aihubmix/ai-sdk-provider@^1.0.1. Because it's a caret range, installs stay on 1.0.x (the lockfile currently resolves to 1.0.1) and never pick up the 2.x line, which has been available since Feb 2026.

What is the new behavior?

Bumps the dependency to ^2.2.1. The public API that the model registry uses (createAihubmix → buildApiKeyProvider("createAihubmix", "aihubmix")) is unchanged, and 2.x still targets AI SDK v6 / LanguageModelV3. Model routing is the same: claude-* goes to Anthropic Messages, gemini* goes to Gemini native, and everything else goes to OpenAI-compatible.

What users get:

  • Streaming fix for OpenAI-compatible models (now built on @ai-sdk/openai-compatible, which fixes a Zod validation error on stream chunks)
  • Custom fetch is forwarded to Claude / Gemini / Responses models (before, only OpenAI-compatible models got it)
  • No redundant Authorization header on Claude / Gemini requests
  • New optional baseURL / appCode settings
  • zod peer range ^3.25.0 || ^4.0.0, which matches core's

Notes for reviewers

  • pnpm install --lockfile-only with the repo's pinned pnpm@8.10.5. Besides the aihubmix subtree, pnpm also re-resolved a few transitive rolldown / @oxc-project/types patch versions. I didn't touch those directly; I'm happy to drop them if you'd rather keep the lockfile diff minimal.
  • Verified locally: pnpm install --frozen-lockfile, tsc --noEmit in packages/core (0 errors), and vitest run on agent.spec.ts, model-provider-registry-minimax.spec.ts and memory/adapters/embedding/ai-sdk.spec.ts (141 passed). Also checked that resolveLanguageModel("aihubmix/gpt-4o-mini") returns a v3 model.

Disclosure: I maintain @aihubmix/ai-sdk-provider.

🤖 Generated with Claude Code


Summary by cubic

Updates @voltagent/core from @aihubmix/ai-sdk-provider ^1.0.1 to ^2.2.1 so it receives the provider’s 2.x fixes without changing the existing createAihubmix integration.

  • Fixes streaming for OpenAI-compatible models.
  • Forwards custom fetch to Claude, Gemini, and Responses models.
  • Removes redundant Authorization headers from Claude and Gemini requests.
  • Keeps the existing apiKey-only core configuration; baseURL and appCode are not exposed through the registry adapter.
  • Adds a patch changeset and limits lockfile updates to the provider dependency subtree.

Written for commit 8468902. Summary will update on new commits.

View guided diff

Summary by CodeRabbit

  • Updates
    • Updated the AIHubMix provider integration, including streaming, custom fetch forwarding, and authorization-header handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8468902

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@voltagent/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 22fd09b1-d45a-430e-87e4-649f5a26ce6f
📥 Commits

Reviewing files that changed from the base of the PR and between 44304d4 and 8468902.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • .changeset/bump-aihubmix-provider-v2.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .changeset/bump-aihubmix-provider-v2.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The core package dependency on @aihubmix/ai-sdk-provider changes from ^1.0.1 to ^2.2.1. A patch changeset records the upgrade and provider changes.

Changes

AIHubmix provider dependency update

Layer / File(s) Summary
Dependency update and release declaration
packages/core/package.json, .changeset/bump-aihubmix-provider-v2.md
The core package dependency range changes to ^2.2.1. A patch changeset documents the update and provider behavior notes.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 84689

The provider upgrade and release note have no identified issue requiring a fix before merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the core change: upgrading @aihubmix/ai-sdk-provider to ^2.2.1.
Description check ✅ Passed The description explains the current and new behavior, lists the provider changes, records validation results, and confirms the changeset. It does not explicitly link an issue or complete separate che…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .changeset/bump-aihubmix-provider-v2.md Outdated
chenxue and others added 2 commits October 8, 2026 14:20
Resolve pnpm-lock.yaml conflict by regenerating from upstream's lockfile
with pnpm@8.10.5 and keeping only the aihubmix subtree changes (dropped
the incidental rolldown / @oxc-project/types re-resolution).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core's registry adapter only passes { apiKey } to createAihubmix, so these
options can't be configured through @voltagent/core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant