Skip to content

Commit 6aaff63

Browse files
authored
fix: bugfix in fetching API Key on base llm provider. (#1063)
1 parent 12c6b7a commit 6aaff63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/modules/llm/base-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export abstract class BaseProvider implements ProviderInfo {
4646

4747
const apiTokenKey = this.config.apiTokenKey || defaultApiTokenKey;
4848
const apiKey =
49-
apiKeys?.[this.name] || serverEnv?.[apiTokenKey] || process?.env?.[apiTokenKey] || manager.env?.[baseUrlKey];
49+
apiKeys?.[this.name] || serverEnv?.[apiTokenKey] || process?.env?.[apiTokenKey] || manager.env?.[apiTokenKey];
5050

5151
return {
5252
baseUrl,

0 commit comments

Comments
 (0)