From 6aaff63ca70c7ebdc6683e850a6fcefe0edaf397 Mon Sep 17 00:00:00 2001 From: GaryStimson <20581382+GaryStimson@users.noreply.github.com> Date: Sun, 12 Jan 2025 16:24:45 +0000 Subject: [PATCH] fix: bugfix in fetching API Key on base llm provider. (#1063) --- app/lib/modules/llm/base-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/modules/llm/base-provider.ts b/app/lib/modules/llm/base-provider.ts index ebe10499..1e3b1c8c 100644 --- a/app/lib/modules/llm/base-provider.ts +++ b/app/lib/modules/llm/base-provider.ts @@ -46,7 +46,7 @@ export abstract class BaseProvider implements ProviderInfo { const apiTokenKey = this.config.apiTokenKey || defaultApiTokenKey; const apiKey = - apiKeys?.[this.name] || serverEnv?.[apiTokenKey] || process?.env?.[apiTokenKey] || manager.env?.[baseUrlKey]; + apiKeys?.[this.name] || serverEnv?.[apiTokenKey] || process?.env?.[apiTokenKey] || manager.env?.[apiTokenKey]; return { baseUrl,