Skip to content

Commit

Permalink
fix error messages mentioning support@ (#427)
Browse files Browse the repository at this point in the history
Co-authored-by: Shyamal H Anadkat <[email protected]>
  • Loading branch information
mpokrass and shyamal-anadkat authored May 1, 2023
1 parent c556584 commit 6fb0efd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openai/api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def _prepare_request_raw(
else:
raise error.APIConnectionError(
"Unrecognized HTTP method %r. This may indicate a bug in the "
"OpenAI bindings. Please contact support@openai.com for "
"OpenAI bindings. Please contact us through our help center at help.openai.com for "
"assistance." % (method,)
)

Expand Down
2 changes: 1 addition & 1 deletion openai/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def signal_handler(sig, frame):
)
elif status == "failed":
sys.stdout.write(
"\nJob failed. Please contact support@openai.com if you need assistance."
"\nJob failed. Please contact us through our help center at help.openai.com if you need assistance."
)
sys.stdout.write("\n")

Expand Down
2 changes: 1 addition & 1 deletion openai/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
except BaseException:
http_body = (
"<Could not decode body as utf-8. "
"Please report to support@openai.com>"
"Please contact us through our help center at help.openai.com.>"
)

self._message = message
Expand Down
2 changes: 1 addition & 1 deletion openai/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ def default_api_key() -> str:
return openai.api_key
else:
raise openai.error.AuthenticationError(
"No API key provided. You can set your API key in code using 'openai.api_key = <API-KEY>', or you can set the environment variable OPENAI_API_KEY=<API-KEY>). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = <PATH>'. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details, or email [email protected] if you have any questions."
"No API key provided. You can set your API key in code using 'openai.api_key = <API-KEY>', or you can set the environment variable OPENAI_API_KEY=<API-KEY>). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = <PATH>'. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details."
)

0 comments on commit 6fb0efd

Please sign in to comment.