refactor(provider): remove google-vertex-anthropic special case in ge… (#10743)
This commit is contained in:
@@ -1023,12 +1023,9 @@ export namespace Provider {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special case: google-vertex-anthropic uses a subpath import
|
const bundledFn = BUNDLED_PROVIDERS[model.api.npm]
|
||||||
const bundledKey =
|
|
||||||
model.providerID === "google-vertex-anthropic" ? "@ai-sdk/google-vertex/anthropic" : model.api.npm
|
|
||||||
const bundledFn = BUNDLED_PROVIDERS[bundledKey]
|
|
||||||
if (bundledFn) {
|
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({
|
const loaded = bundledFn({
|
||||||
name: model.providerID,
|
name: model.providerID,
|
||||||
...options,
|
...options,
|
||||||
|
|||||||
Reference in New Issue
Block a user