From bc96340b042a37e124c91ac22f7cc2d52858d178 Mon Sep 17 00:00:00 2001 From: Ty Dunn <ty@tydunn.com> Date: Mon, 3 Jul 2023 18:54:33 -0700 Subject: improving slash command message --- continuedev/src/continuedev/core/policy.py | 4 +++- extension/react-app/src/components/ComboBox.tsx | 2 +- extension/react-app/src/tabs/gui.tsx | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/continuedev/src/continuedev/core/policy.py b/continuedev/src/continuedev/core/policy.py index 0b417959..250ae8f8 100644 --- a/continuedev/src/continuedev/core/policy.py +++ b/continuedev/src/continuedev/core/policy.py @@ -29,7 +29,9 @@ class DemoPolicy(Policy): if history.get_current() is None: return ( MessageStep(name="Welcome to Continue", message=dedent("""\ - Type '/' to see the list of available slash commands. If you highlight code, edits and explanations will be localized to the highlighted range. Otherwise, the currently open file is used. In both cases, the code is combined with the previous steps to construct the context.""")) >> + - 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""")) >> WelcomeStep() >> # SetupContinueWorkspaceStep() >> # CreateCodebaseIndexChroma() >> diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index f299c3a2..87c1abc0 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -158,7 +158,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { <div className="flex px-2" ref={divRef} hidden={!isOpen}> <MainTextInput disabled={props.disabled} - placeholder="Type '/' to see available slash commands." + placeholder="Ask a question, give instructions, or type '/' to see slash commands" {...getInputProps({ onChange: (e) => { const target = e.target as HTMLTextAreaElement; diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index e0b32a24..973982ba 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -87,12 +87,12 @@ function GUI(props: GUIProps) { name: "Welcome to Continue", hide: false, description: - "Type '/' to see the list of available slash commands. If you highlight code, edits and explanations will be localized to the highlighted range. Otherwise, the currently open file is used. In both cases, the code is combined with the previous steps to construct the context.", + "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.", system_message: null, chat_context: [], manage_own_chat_context: false, message: - "Type '/' to see the list of available slash commands. If you highlight code, edits and explanations will be localized to the highlighted range. Otherwise, the currently open file is used. In both cases, the code is combined with the previous steps to construct the context.", + "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.", }, depth: 0, deleted: false, -- cgit v1.2.3-70-g09d2 From 77ed3df388fcb8c5178907ef8aae3c3eab7415da Mon Sep 17 00:00:00 2001 From: Ty Dunn <ty@tydunn.com> Date: Mon, 3 Jul 2023 19:16:18 -0700 Subject: removing huggingface token setting --- extension/package.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/extension/package.json b/extension/package.json index 58ff2b61..741532c2 100644 --- a/extension/package.json +++ b/extension/package.json @@ -58,11 +58,6 @@ "default": "", "description": "The OpenAI API key to use for code generation." }, - "continue.HUGGING_FACE_TOKEN": { - "type": "password", - "default": "", - "description": "The Hugging Face API token to use for code generation." - }, "continue.dataSwitch": { "type": "boolean", "default": false, -- cgit v1.2.3-70-g09d2