mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-10 22:51:29 +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,
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
openai_client = OpenAIEmbeddings(**client_params)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user