summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-11 15:41:20 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-11 15:41:20 -0700
commit4ae20d0ded02f49f6a848dee933c54cb24df641f (patch)
tree51f9064079518d18eadcbfe64014be8d84378a11
parent125a4980f3b9e2b27ca10c75f5914cd0559ff828 (diff)
downloadsncontinue-4ae20d0ded02f49f6a848dee933c54cb24df641f.tar.gz
sncontinue-4ae20d0ded02f49f6a848dee933c54cb24df641f.tar.bz2
sncontinue-4ae20d0ded02f49f6a848dee933c54cb24df641f.zip
if ssl prob with personal key, tell to use our key
-rw-r--r--continuedev/src/continuedev/core/autopilot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py
index 11fc9cb1..3f07e270 100644
--- a/continuedev/src/continuedev/core/autopilot.py
+++ b/continuedev/src/continuedev/core/autopilot.py
@@ -35,7 +35,7 @@ def get_error_title(e: Exception) -> str:
elif isinstance(e, ClientPayloadError):
return "The request to OpenAI failed. Please try again."
elif isinstance(e, openai_errors.APIConnectionError):
- return "The request failed. Please check your internet connection and try again."
+ return "The request failed. Please check your internet connection and try again. If this issue persists, you can use our API key for free by going to VS Code settings and changing the value of continue.OPENAI_API_KEY to \"\""
elif isinstance(e, openai_errors.InvalidRequestError):
return 'Your API key does not have access to GPT-4. You can use ours for free by going to VS Code settings and changing the value of continue.OPENAI_API_KEY to ""'
return e.__str__() or e.__repr__()