From 5b15176e2031e445d28639a6be2901d7cdf0ecaa Mon Sep 17 00:00:00 2001 From: Debanjum Date: Thu, 31 Oct 2024 18:02:55 -0700 Subject: [PATCH] Only add /research prefix in research mode if not already in user query --- .../web/app/components/chatInputArea/chatInputArea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index b60228df..59152684 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -149,7 +149,7 @@ export const ChatInputArea = forwardRef((pr } let messageToSend = message.trim(); - if (useResearchMode) { + if (useResearchMode && !messageToSend.startsWith("/research")) { messageToSend = `/research ${messageToSend}`; }