fix: bugfix in fetching API Key on base llm provider. (#1063)

This commit is contained in:
GaryStimson 2025-01-12 16:24:45 +00:00 committed by GitHub
parent 12c6b7abe5
commit 6aaff63ca7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ export abstract class BaseProvider implements ProviderInfo {
const apiTokenKey = this.config.apiTokenKey || defaultApiTokenKey; const apiTokenKey = this.config.apiTokenKey || defaultApiTokenKey;
const apiKey = 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 { return {
baseUrl, baseUrl,