diff options
Diffstat (limited to 'continuedev/src')
| -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""" | 
