Skip to content

Commit

Permalink
Update libs/partners/openai/langchain_openai/llms/base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Sep 4, 2024
1 parent c1ff616 commit 4c7afb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/llms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def validate_environment(self) -> Self:
if not self.client:
sync_specific = {"http_client": self.http_client}
self.client = openai.OpenAI(**client_params, **sync_specific).completions # type: ignore[arg-type]
if not (self.async_client or None):
if not self.async_client:
async_specific = {"http_client": self.http_async_client}
self.async_client = openai.AsyncOpenAI(
**client_params,
Expand Down

0 comments on commit 4c7afb0

Please sign in to comment.