mirror of
				https://github.com/langgenius/dify.git
				synced 2025-11-04 04:43:09 +00:00 
			
		
		
		
	fix: azure embedding model credentials include base_model_name is invalid for openai sdk (#917)
This commit is contained in:
		
							parent
							
								
									5163dd38e5
								
							
						
					
					
						commit
						1c552ff23a
					
				@ -26,7 +26,8 @@ class AzureOpenAIEmbedding(BaseEmbedding):
 | 
				
			|||||||
            openai_api_version=AZURE_OPENAI_API_VERSION,
 | 
					            openai_api_version=AZURE_OPENAI_API_VERSION,
 | 
				
			||||||
            chunk_size=16,
 | 
					            chunk_size=16,
 | 
				
			||||||
            max_retries=1,
 | 
					            max_retries=1,
 | 
				
			||||||
            **self.credentials
 | 
					            openai_api_key=self.credentials.get('openai_api_key'),
 | 
				
			||||||
 | 
					            openai_api_base=self.credentials.get('openai_api_base')
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        super().__init__(model_provider, client, name)
 | 
					        super().__init__(model_provider, client, name)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user