Skip to content

Commit

Permalink
fix: bugfix in fetching API Key on base llm provider. (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryStimson authored Jan 12, 2025
1 parent 12c6b7a commit 6aaff63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/modules/llm/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6aaff63

Please sign in to comment.