diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-03 22:40:07 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-03 22:40:07 -0700 |
commit | eac91498f9d53248d87cb7244fb61aa906e120b1 (patch) | |
tree | ec07ea806390b286f1c4e1d6896edb5326c154eb | |
parent | ce36d1e516e4cec7adfb8407cb50d7a5589be081 (diff) | |
download | sncontinue-eac91498f9d53248d87cb7244fb61aa906e120b1.tar.gz sncontinue-eac91498f9d53248d87cb7244fb61aa906e120b1.tar.bz2 sncontinue-eac91498f9d53248d87cb7244fb61aa906e120b1.zip |
fixes, better messaging
-rw-r--r-- | continuedev/src/continuedev/core/autopilot.py | 2 | ||||
-rw-r--r-- | continuedev/src/continuedev/core/policy.py | 3 | ||||
-rw-r--r-- | continuedev/src/continuedev/server/gui_protocol.py | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py index b3b98b8b..f80743f9 100644 --- a/continuedev/src/continuedev/core/autopilot.py +++ b/continuedev/src/continuedev/core/autopilot.py @@ -35,6 +35,8 @@ def get_error_title(e: Exception) -> str: 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." + 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__() diff --git a/continuedev/src/continuedev/core/policy.py b/continuedev/src/continuedev/core/policy.py index 250ae8f8..385b846f 100644 --- a/continuedev/src/continuedev/core/policy.py +++ b/continuedev/src/continuedev/core/policy.py @@ -31,7 +31,8 @@ class DemoPolicy(Policy): MessageStep(name="Welcome to Continue", message=dedent("""\ - Highlight code and ask a question or give instructions - Past steps are used as additional context by default - - Use slash commands when you want fine-grained control""")) >> + - Use slash commands when you want fine-grained control + - Use cmd+k (MacOS) or ctrl+k (Windows) to toggle Continue""")) >> WelcomeStep() >> # SetupContinueWorkspaceStep() >> # CreateCodebaseIndexChroma() >> diff --git a/continuedev/src/continuedev/server/gui_protocol.py b/continuedev/src/continuedev/server/gui_protocol.py index 66839d9b..9766fcd0 100644 --- a/continuedev/src/continuedev/server/gui_protocol.py +++ b/continuedev/src/continuedev/server/gui_protocol.py @@ -28,10 +28,6 @@ class AbstractGUIProtocolServer(ABC): """Send a state update to the client""" @abstractmethod - async def send_available_slash_commands(self, commands: List[Dict]): - """Send a list of available slash commands to the client""" - - @abstractmethod def on_retry_at_index(self, index: int): """Called when the user requests a retry at a previous index""" |