Skip to content

Commit 6fb0efd

Browse files
fix error messages mentioning support@ (openai#427)
Co-authored-by: Shyamal H Anadkat <[email protected]>
1 parent c556584 commit 6fb0efd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

openai/api_requestor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def _prepare_request_raw(
487487
else:
488488
raise error.APIConnectionError(
489489
"Unrecognized HTTP method %r. This may indicate a bug in the "
490-
"OpenAI bindings. Please contact support@openai.com for "
490+
"OpenAI bindings. Please contact us through our help center at help.openai.com for "
491491
"assistance." % (method,)
492492
)
493493

openai/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def signal_handler(sig, frame):
565565
)
566566
elif status == "failed":
567567
sys.stdout.write(
568-
"\nJob failed. Please contact support@openai.com if you need assistance."
568+
"\nJob failed. Please contact us through our help center at help.openai.com if you need assistance."
569569
)
570570
sys.stdout.write("\n")
571571

openai/error.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(
1919
except BaseException:
2020
http_body = (
2121
"<Could not decode body as utf-8. "
22-
"Please report to support@openai.com>"
22+
"Please contact us through our help center at help.openai.com.>"
2323
)
2424

2525
self._message = message

openai/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,5 @@ def default_api_key() -> str:
184184
return openai.api_key
185185
else:
186186
raise openai.error.AuthenticationError(
187-
"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."
187+
"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."
188188
)

0 commit comments

Comments
 (0)