Skip to content

fix(embedding): load transformers via CJS so Intel Mac onnxruntime pin applies (#210) - #211

Merged
EyJunge1 merged 2 commits into
tickernelz:mainfrom
EyJunge1:main
Jul 30, 2026
Merged

fix(embedding): load transformers via CJS so Intel Mac onnxruntime pin applies (#210)#211
EyJunge1 merged 2 commits into
tickernelz:mainfrom
EyJunge1:main

Conversation

@EyJunge1

@EyJunge1 EyJunge1 commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • OpenCode nested installs can keep onnxruntime-node@1.24.3 under transformers; the ESM import bypassed the CJS resolve shim and the error rewrite then misreported the pinned 1.22.0 binding as missing.
  • Prefer the CJS export, pin onnxruntime-common with the same stack, keep real load errors when the binding exists, and cover the nested layout in CI on macos-15/26.

Fixes #210

Test plan

@EyJunge1
EyJunge1 merged commit dc6dde7 into tickernelz:main Jul 30, 2026
14 checks passed
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.

[Bug] v2.22.0 Intel Mac: fail-fast reports onnxruntime binding missing though file exists and loads under Node/Bun

1 participant