mirror of
				https://github.com/stackblitz-labs/bolt.diy
				synced 2025-06-26 18:26:38 +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 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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user