Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Load models.dev snapshot from build global - #28077

Merged
thdxr merged 1 commit into
devfrom
models-dev-global-snapshot
May 18, 2026
Merged

thdxr merged 1 commit into
devfrom
models-dev-global-snapshot

Conversation

@thdxr

@thdxr thdxr commented May 17, 2026

Copy link
Copy Markdown
Member

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

@greptile-apps greptile-apps 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.

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

@thdxr
thdxr merged commit e85119a into dev May 18, 2026
12 checks passed
@thdxr
thdxr deleted the models-dev-global-snapshot branch May 18, 2026 01:59
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request 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