Skip to content

Commit

Permalink
chore: shorten tiptap placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Erichsen committed Nov 26, 2024
1 parent 5278b11 commit 192b932
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gui/src/components/mainInput/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,6 @@ function TipTapEditor(props: TipTapEditorProps) {

const { prevRef, nextRef, addRef } = useInputHistory(props.historyKey);

function getPlaceholder() {
if (!hasDefaultModel) {
return "Configure a Chat model to get started";
}

return historyLengthRef.current === 0
? "Ask anything, '/' for slash commands, '@' to add context"
: "Ask a follow-up";
}

const editor: Editor = useEditor({
extensions: [
Document,
Expand Down Expand Up @@ -366,7 +356,7 @@ function TipTapEditor(props: TipTapEditorProps) {
placeholder:
props.placeholder ??
(historyLengthRef.current === 0
? "Ask anything, '/' for slash commands, '@' to add context"
? "Ask anything, '@' to add context"
: "Ask a follow-up"),
}),
Paragraph.extend({
Expand Down

0 comments on commit 192b932

Please sign in to comment.