Skip to content

Commit 297416b

Browse files
committed
fix(cli): use correct baseURL property for AI SDK providers
1 parent c77c8c8 commit 297416b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/cli/localizer/explicit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function createExplicitLocalizer(
9595
}
9696

9797
function createAiSdkLocalizer(params: {
98-
factory: (params: { apiKey?: string; baseUrl?: string }) => LanguageModel;
98+
factory: (params: { apiKey?: string; baseURL?: string }) => LanguageModel;
9999
id: NonNullable<I18nConfig["provider"]>["id"];
100100
prompt: string;
101101
apiKeyName?: string;
@@ -137,7 +137,7 @@ function createAiSdkLocalizer(params: {
137137
}
138138

139139
const model = params.factory(
140-
skipAuth ? {} : { apiKey, baseUrl: params.baseUrl },
140+
skipAuth ? {} : { apiKey, baseURL: params.baseUrl },
141141
);
142142

143143
return {

0 commit comments

Comments
 (0)