raiseException("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={"http": self.openai_proxy, "https": self.openai_proxy})'")# type: ignore[assignment] # noqa: E501
raiseException("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={
"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
@ -782,16 +782,16 @@ class OpenAIChat(BaseLLM):
try:
importopenai
openai.api_key=openai_api_key
ifopenai_api_base:
openai.api_base=openai_api_base
raiseException("The 'openai.api_base' option isn't read in the client API. You will need to pass it when you instantiate the client, e.g. 'OpenAI(api_base=openai_api_base)'")
ifopenai_organization:
openai.organization=openai_organization
raiseException("The 'openai.organization' option isn't read in the client API. You will need to pass it when you instantiate the client, e.g. 'OpenAI(organization=openai_organization)'")
ifopenai_proxy:
openai.proxy={
raiseException("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={