Update openai.py with another missing .config

This commit is contained in:
Nina Lopatina 2024-05-22 16:31:50 -07:00 committed by GitHub
parent 3fa39b40c8
commit f77b382303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)