Skip to content

Commit

Permalink
fix: clear user input after chat submit (run-llama#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwandekoken committed Apr 1, 2024
1 parent 79c24fe commit 35d5ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chat/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export default function ChatInput(props: ChatInputProps) {
);
setImageFile(undefined);
setTemporaryURLInput("");
setUserInput("");
};

const manageTemporaryBlobUrl = (
Expand Down Expand Up @@ -155,6 +154,7 @@ export default function ChatInput(props: ChatInputProps) {
if (isURL(input)) {
setTemporaryURLInput(input);
}
setUserInput("");
await callLLM({ input, fileDetail: imageFile });
if (!isMobileScreen) inputRef.current?.focus();
setAutoScroll(true);
Expand Down

0 comments on commit 35d5ee9

Please sign in to comment.