feat: Make the models.dev domain configurable for offline environments (#9258)

This commit is contained in:
Bart Broere
2026-01-21 18:23:07 +01:00
committed by GitHub
parent 95b17bcf5e
commit 8df09abb1b
5 changed files with 18 additions and 6 deletions

View File

@@ -22,6 +22,10 @@ export namespace Global {
cache,
config,
state,
// Allow overriding models.dev URL for offline deployments
get modelsDevUrl() {
return process.env.OPENCODE_MODELS_URL || "https://models.dev"
},
}
}