|
|
@@ -1023,12 +1023,9 @@ export namespace Provider {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- // Special case: google-vertex-anthropic uses a subpath import
|
|
|
- const bundledKey =
|
|
|
- model.providerID === "google-vertex-anthropic" ? "@ai-sdk/google-vertex/anthropic" : model.api.npm
|
|
|
- const bundledFn = BUNDLED_PROVIDERS[bundledKey]
|
|
|
+ const bundledFn = BUNDLED_PROVIDERS[model.api.npm]
|
|
|
if (bundledFn) {
|
|
|
- log.info("using bundled provider", { providerID: model.providerID, pkg: bundledKey })
|
|
|
+ log.info("using bundled provider", { providerID: model.providerID, pkg: model.api.npm })
|
|
|
const loaded = bundledFn({
|
|
|
name: model.providerID,
|
|
|
...options,
|