mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 10:55:34 +00:00
fix: bugfix in fetching API Key on base llm provider. (#1063)
This commit is contained in:
parent
12c6b7abe5
commit
6aaff63ca7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user