mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 08:44:22 +01:00
chore: format code
This commit is contained in:
@@ -470,7 +470,7 @@ export namespace Provider {
|
|||||||
const key = Bun.hash.xxHash32(JSON.stringify({ pkg, options }))
|
const key = Bun.hash.xxHash32(JSON.stringify({ pkg, options }))
|
||||||
const existing = s.sdk.get(key)
|
const existing = s.sdk.get(key)
|
||||||
if (existing) return existing
|
if (existing) return existing
|
||||||
|
|
||||||
let installedPath: string
|
let installedPath: string
|
||||||
if (!pkg.startsWith("file://")) {
|
if (!pkg.startsWith("file://")) {
|
||||||
installedPath = await BunProc.install(pkg, "latest")
|
installedPath = await BunProc.install(pkg, "latest")
|
||||||
@@ -478,7 +478,7 @@ export namespace Provider {
|
|||||||
log.info("loading local provider", { pkg })
|
log.info("loading local provider", { pkg })
|
||||||
installedPath = pkg
|
installedPath = pkg
|
||||||
}
|
}
|
||||||
|
|
||||||
// The `google-vertex-anthropic` provider points to the `@ai-sdk/google-vertex` package.
|
// The `google-vertex-anthropic` provider points to the `@ai-sdk/google-vertex` package.
|
||||||
// Ref: https://github.com/sst/models.dev/blob/0a87de42ab177bebad0620a889e2eb2b4a5dd4ab/providers/google-vertex-anthropic/provider.toml
|
// Ref: https://github.com/sst/models.dev/blob/0a87de42ab177bebad0620a889e2eb2b4a5dd4ab/providers/google-vertex-anthropic/provider.toml
|
||||||
// However, the actual export is at the subpath `@ai-sdk/google-vertex/anthropic`.
|
// However, the actual export is at the subpath `@ai-sdk/google-vertex/anthropic`.
|
||||||
|
|||||||
Reference in New Issue
Block a user