mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08: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,
|
||||
chunk_size=16,
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user