mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Only add /research prefix in research mode if not already in user query
This commit is contained in:
parent
559601dd0a
commit
5b15176e20
1 changed files with 1 additions and 1 deletions
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue