if ssl prob with personal key, tell to use our key
This commit is contained in:
parent
9adfb8bf5b
commit
31fa2bb974
1 changed files with 1 additions and 1 deletions
|
|
@ -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__()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue