Skip to content

feat(provider): bundle @aihubmix/ai-sdk-provider in desktop app#32382

Closed
xinrui-z wants to merge 1 commit into
anomalyco:devfrom
xinrui-z:feat/bundle-aihubmix-provider-v2
Closed

feat(provider): bundle @aihubmix/ai-sdk-provider in desktop app#32382
xinrui-z wants to merge 1 commit into
anomalyco:devfrom
xinrui-z:feat/bundle-aihubmix-provider-v2

Conversation

@xinrui-z

Copy link
Copy Markdown

Type of change

  • Bug fix

What does this PR do?

When using the aihubmix provider in the desktop (Electron) app, it throws ProviderInitError. The terminal/CLI works fine because the package can be dynamically installed at runtime, but in the Electron/Node build that dynamic-install path fails.

This adds @aihubmix/ai-sdk-provider to BUNDLED_PROVIDERS so the package is pre-bundled at build time, following the exact same pattern as the other bundled third-party providers (@openrouter/ai-sdk-provider, venice-ai-sdk-provider).

This is a rebased resubmit of #20629 (which was closed by automated cleanup). It has been re-applied on top of the current BUNDLED_PROVIDERS lazy-import structure and updated to the latest published version (2.2.1).

How did you verify your code works?

  • packages/opencode: bun typecheck passes
  • Confirmed the aihubmix provider initializes in the desktop build without throwing ProviderInitError

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add @aihubmix/ai-sdk-provider to BUNDLED_PROVIDERS so the package is
pre-bundled in the desktop (Electron) build. Without this, the desktop
app falls back to dynamic npm install at runtime, which fails in the
Electron sandbox and throws ProviderInitError.
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 15, 2026
@github-actions github-actions Bot closed this Jun 15, 2026
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