mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-14 16:52:11 +00:00
Update openai.py with another missing .config
This commit is contained in:
parent
3fa39b40c8
commit
f77b382303
@ -79,9 +79,9 @@ class OpenAIEmbeddingEncoder(BaseEmbeddingEncoder):
|
|||||||
"model": self.config.model_name,
|
"model": self.config.model_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.openai_api_base is not None:
|
if self.config.openai_api_base is not None:
|
||||||
client_params["openai_api_base"] = self.config.openai_api_base
|
client_params["openai_api_base"] = self.config.openai_api_base
|
||||||
if self.openai_api_type is not None:
|
if self.config.openai_api_type is not None:
|
||||||
client_params["openai_api_type"] = self.config.openai_api_type
|
client_params["openai_api_type"] = self.config.openai_api_type
|
||||||
|
|
||||||
openai_client = OpenAIEmbeddings(**client_params)
|
openai_client = OpenAIEmbeddings(**client_params)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user