Skip to content

Commit

Permalink
chore: add file search in tools
Browse files Browse the repository at this point in the history
  • Loading branch information
adnandothussain committed Dec 18, 2024
1 parent bc30159 commit 5a2bb03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/SidePanel/Builder/AssistantPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 });
}
Expand Down

0 comments on commit 5a2bb03

Please sign in to comment.