|
|
@@ -151,10 +151,10 @@ const layer = Layer.effect(
|
|
|
),
|
|
|
)
|
|
|
|
|
|
- const source = Flag.OPENCODE_MODELS_URL || "https://models.dev"
|
|
|
+ const source = Flag.OPENCODE_MODELS_URL || "https://models.opencode.ai"
|
|
|
const filepath = path.join(
|
|
|
Global.Path.cache,
|
|
|
- source === "https://models.dev" ? "models.json" : `models-${Hash.fast(source)}.json`,
|
|
|
+ source === "https://models.opencode.ai" ? "models.json" : `models-${Hash.fast(source)}.json`,
|
|
|
)
|
|
|
const ttl = Duration.minutes(5)
|
|
|
const lockKey = `models-dev:${filepath}`
|