Only add /research prefix in research mode if not already in user query

This commit is contained in:
Debanjum 2024-10-31 18:02:55 -07:00
parent 559601dd0a
commit 5b15176e20

View file

@ -149,7 +149,7 @@ export const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputProps>((pr
}
let messageToSend = message.trim();
if (useResearchMode) {
if (useResearchMode && !messageToSend.startsWith("/research")) {
messageToSend = `/research ${messageToSend}`;
}