mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-02 00:28:51 +01:00
fix: add logic so filepicker for a google agent has proper filetype filtering
This commit is contained in:
parent
d3bfc810ff
commit
ccb2e031dd
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ const AttachFileMenu = ({
|
|||
label: localize('com_ui_upload_provider'),
|
||||
onClick: () => {
|
||||
setToolResource(EToolResources.direct_attach);
|
||||
onAction(endpoint === EModelEndpoint.google ? 'google_multimodal' : 'multimodal');
|
||||
onAction(
|
||||
(agent?.provider ?? endpoint) === EModelEndpoint.google
|
||||
? 'google_multimodal'
|
||||
: 'multimodal',
|
||||
);
|
||||
},
|
||||
icon: <FileImageIcon className="icon-md" />,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue