Skip to content

Commit

Permalink
chore: update copy when retrieval turn off (janhq#3585)
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Sep 9, 2024
1 parent 3ddb32e commit ecf83d0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,16 @@ const ChatInput = () => {
)}
{activeThread?.assistants[0].tools &&
activeThread?.assistants[0].tools[0]?.enabled ===
false && <span>Not supported for this model</span>}
false &&
isModelSupportRagAndTools && (
<span>
Turn on Retrieval in Tools settings to use this
feature
</span>
)}
{!isModelSupportRagAndTools && (
<span>Not supported for this model</span>
)}
</>
))}
</>
Expand Down

0 comments on commit ecf83d0

Please sign in to comment.