Unverified Commit 1c552ff2 authored by takatost's avatar takatost Committed by GitHub

fix: azure embedding model credentials include base_model_name is invalid for openai sdk (#917)

parent 5163dd38
...@@ -26,7 +26,8 @@ class AzureOpenAIEmbedding(BaseEmbedding): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment