fix(python): fix typo in passing in the api_key explicitly (#1098)

fix silly typo
This commit is contained in:
Chang She
2024-03-12 22:01:12 -07:00
committed by GitHub
parent 4dc7497547
commit b482f41bf4

View File

@@ -113,5 +113,5 @@ class OpenAIEmbeddings(TextEmbeddingFunction):
if self.organization:
kwargs["organization"] = self.organization
if self.api_key:
kwargs["api_key"] = self
kwargs["api_key"] = self.api_key
return openai.OpenAI(**kwargs)