From 5a2bb03410ebcc58da01da36c69cb13a30365878 Mon Sep 17 00:00:00 2001 From: Adnan Hussain Date: Wed, 18 Dec 2024 15:55:40 +0500 Subject: [PATCH] chore: add file search in tools --- client/src/components/SidePanel/Builder/AssistantPanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/SidePanel/Builder/AssistantPanel.tsx b/client/src/components/SidePanel/Builder/AssistantPanel.tsx index 63f2587da07..765e7d818a9 100644 --- a/client/src/components/SidePanel/Builder/AssistantPanel.tsx +++ b/client/src/components/SidePanel/Builder/AssistantPanel.tsx @@ -82,7 +82,7 @@ export default function AssistantPanel({ [assistantsConfig], ); const retrievalEnabled = useMemo( - () => assistantsConfig?.capabilities?.includes(Capabilities.retrieval), + () => assistantsConfig?.capabilities?.includes(Capabilities.file_search), [assistantsConfig], ); const codeEnabled = useMemo( @@ -155,6 +155,9 @@ export default function AssistantPanel({ if (data.code_interpreter) { tools.push({ type: Tools.code_interpreter }); } + if (data.file_search) { + tools.push({ type: Tools.file_search }); + } if (data.retrieval) { tools.push({ type: version == 2 ? Tools.file_search : Tools.retrieval }); }