mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
⬆️ refactor: Enable File Search from Upload Option (#9425)
This commit is contained in:
parent
47aa90df1d
commit
195e1e9eb2
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ const AttachFileMenu = ({ disabled, conversationId, endpointFileConfig }: Attach
|
||||||
label: localize('com_ui_upload_file_search'),
|
label: localize('com_ui_upload_file_search'),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
setToolResource(EToolResources.file_search);
|
setToolResource(EToolResources.file_search);
|
||||||
|
setEphemeralAgent((prev) => ({
|
||||||
|
...prev,
|
||||||
|
[EToolResources.file_search]: true,
|
||||||
|
}));
|
||||||
onAction();
|
onAction();
|
||||||
},
|
},
|
||||||
icon: <FileSearch className="icon-md" />,
|
icon: <FileSearch className="icon-md" />,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue