From ecf83d03c5b4520aa3bafcac5686951e8472b42d Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 9 Sep 2024 09:39:46 +0700 Subject: [PATCH] chore: update copy when retrieval turn off (#3585) --- .../Thread/ThreadCenterPanel/ChatInput/index.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx b/web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx index 141c13fbe..bbecef10e 100644 --- a/web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx +++ b/web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx @@ -226,7 +226,16 @@ const ChatInput = () => { )} {activeThread?.assistants[0].tools && activeThread?.assistants[0].tools[0]?.enabled === - false && Not supported for this model} + false && + isModelSupportRagAndTools && ( + + Turn on Retrieval in Tools settings to use this + feature + + )} + {!isModelSupportRagAndTools && ( + Not supported for this model + )} ))}