From 35e342683a2586833faf722ef0853947f59a9fd9 Mon Sep 17 00:00:00 2001 From: Aliaksei_Breilian Date: Wed, 5 Feb 2025 12:07:23 +0300 Subject: [PATCH] fix: add selected text to agent's context --- packages/ui/src/components/ChatBox/ChatBox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/ChatBox/ChatBox.jsx b/packages/ui/src/components/ChatBox/ChatBox.jsx index d7f4b36..270ac55 100644 --- a/packages/ui/src/components/ChatBox/ChatBox.jsx +++ b/packages/ui/src/components/ChatBox/ChatBox.jsx @@ -465,7 +465,7 @@ const ChatBox = forwardRef(({ ...data, ...data.llm_settings, projectId, - question, + question: question + (selectedText ? '\nSelected text: ' + selectedText : ''), name, chatHistory, interaction_uuid