From e39e349dd337d4b73fee48cdb72f5a281c4f1f22 Mon Sep 17 00:00:00 2001 From: lizhixuan Date: Sat, 30 Aug 2025 18:42:08 +0800 Subject: [PATCH] fix(providerConfig): update Google Vertex AI import and creator function name - Changed the import path for Google Vertex AI to '@ai-sdk/google-vertex/edge'. - Updated the creator function name from 'createGoogleVertex' to 'createVertex' for consistency. --- src/renderer/src/aiCore/provider/providerInitialization.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/aiCore/provider/providerInitialization.ts b/src/renderer/src/aiCore/provider/providerInitialization.ts index 6a89b5d67..49b8544b3 100644 --- a/src/renderer/src/aiCore/provider/providerInitialization.ts +++ b/src/renderer/src/aiCore/provider/providerInitialization.ts @@ -19,10 +19,10 @@ export const NEW_PROVIDER_CONFIGS: ProviderConfig[] = [ { id: 'google-vertex', name: 'Google Vertex AI', - import: () => import('@ai-sdk/google-vertex'), - creatorFunctionName: 'createGoogleVertex', + import: () => import('@ai-sdk/google-vertex/edge'), + creatorFunctionName: 'createVertex', supportsImageGeneration: true, - aliases: ['google-vertex', 'vertexai'] + aliases: ['vertexai'] }, { id: 'bedrock',