Skip to content

Load models.dev snapshot from build global#28077

Open
thdxr wants to merge 1 commit into
devfrom
models-dev-global-snapshot
Open

Load models.dev snapshot from build global#28077
thdxr wants to merge 1 commit into
devfrom
models-dev-global-snapshot

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented May 17, 2026

Summary

  • rename core models service file to models-dev.ts while keeping the ModelsDev namespace
  • inject the models.dev snapshot at build time via OPENCODE_MODELS_DEV
  • remove generated models-snapshot files and update imports

Testing

  • bun typecheck (packages/core)
  • bun typecheck (packages/opencode)
  • bun test test/models.test.ts (packages/core)
  • bun test test/provider/model-status.test.ts (packages/opencode)
  • git push hook: bun turbo typecheck

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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