Skip to content

Commit

Permalink
openai.proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Nov 11, 2023
1 parent 7e3e6ca commit 285a3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarms/models/openai_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ def _invocation_params(self) -> Dict[str, Any]:
if self.openai_proxy:
import openai

raise Exception("The 'openai.proxy' option isn't read in the client API. You will need to pass it when you instantiate the client, e.g. 'OpenAI(proxy={
openai.proxy = {
"http": self.openai_proxy,
"https": self.openai_proxy,
})'") # type: ignore[assignment] # noqa: E501
} # type: ignore[assignment] # noqa: E501
return {**openai_creds, **self._default_params}

@property
Expand Down

0 comments on commit 285a3bd

Please sign in to comment.