improving slash command message

This commit is contained in:
Ty Dunn 2023-07-03 18:54:33 -07:00
parent a37550d5ac
commit c2bb7fa581
3 changed files with 6 additions and 4 deletions

View file

@ -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() >>

View file

@ -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;

View file

@ -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,