fix: bugfix in fetching API Key on base llm provider. (#1063)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user