Skip to content

Commit

Permalink
fix: insert ai content without context
Browse files Browse the repository at this point in the history
  • Loading branch information
adityanandanx committed Nov 6, 2024
1 parent bc796cf commit c2d9145
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ const TextEditorSearchBar = forwardRef<Editor, TextEditorSearchBarProps>(
context: context,
})
.run();
} else {
editor.commands.createAiResponse({
content: messages[0].assistant,
context: null,
});
}
}, [messages.length, router, editor, chatInput.generatingAnswer]);

Expand Down

0 comments on commit c2d9145

Please sign in to comment.