1 parent 1a890ef commit a6447bcCopy full SHA for a6447bc
1 file changed
packages/opencode/src/provider/provider.ts
@@ -1023,12 +1023,9 @@ export namespace Provider {
1023
})
1024
}
1025
1026
- // Special case: google-vertex-anthropic uses a subpath import
1027
- const bundledKey =
1028
- model.providerID === "google-vertex-anthropic" ? "@ai-sdk/google-vertex/anthropic" : model.api.npm
1029
- const bundledFn = BUNDLED_PROVIDERS[bundledKey]
+ const bundledFn = BUNDLED_PROVIDERS[model.api.npm]
1030
if (bundledFn) {
1031
- log.info("using bundled provider", { providerID: model.providerID, pkg: bundledKey })
+ log.info("using bundled provider", { providerID: model.providerID, pkg: model.api.npm })
1032
const loaded = bundledFn({
1033
name: model.providerID,
1034
...options,
0 commit comments