refactor(provider): remove google-vertex-anthropic special case in ge… (#10743)

This commit is contained in:
Michael Yochpaz
2026-01-30 23:57:36 +02:00
committed by GitHub
parent 77fa8ddc88
commit 2c36cbb87c

View File

@@ -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,