Skip to content

Commit b8bbee4

Browse files
committed
fix issue with provider cache
1 parent 8f852b3 commit b8bbee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opencode/src/provider/provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ export namespace Provider {
232232
const s = await state()
233233
const existing = s.sdk.get(provider.id)
234234
if (existing) return existing
235-
const [pkg, version] = provider.npm ?? provider.id
236-
const mod = await import(await BunProc.install(pkg, version))
235+
const pkg = provider.npm ?? provider.id
236+
const mod = await import(await BunProc.install(pkg, "latest"))
237237
const fn = mod[Object.keys(mod).find((key) => key.startsWith("create"))!]
238238
const loaded = fn(s.providers[provider.id]?.options)
239239
s.sdk.set(provider.id, loaded)

0 commit comments

Comments
 (0)