Skip to content

[FEATURE]:Build script ignores OPENCODE_MODELS_URL env var #11385

Description

@bbartels

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Description

The runtime respects OPENCODE_MODELS_URL to override the models.dev endpoint (see src/provider/models.ts:84), but the build script in script/build.ts hardcodes https://models.dev/api.json.

This makes it difficult to build in airgapped environments or when using an internal mirror.

Expected behavior

Build script should respect OPENCODE_MODELS_URL like the runtime does.

Current behavior

Build always fetches from https://models.dev/api.json regardless of environment configuration.

Activity

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions