Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error messages mentioning support@ #427

Merged
merged 1 commit into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
)