fix: use OpenCode model catalog URL (#39672)
Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
parent
ff0382e971
commit
a4f25a94b4
5 changed files with 8 additions and 8 deletions
|
|
@ -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}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue