mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
👨🔧 fix: Direct Provider Attachment Support for Agents (#10035)
* fix: show direct upload option on applicable agents * fix: allow agent file upload handler to process direct upload files (no tool_resource)
This commit is contained in:
parent
e9b678dd6a
commit
ff027e8243
3 changed files with 9 additions and 4 deletions
|
|
@ -37,7 +37,10 @@ export default function useAgentToolPermissions(
|
|||
[agentData?.tools, selectedAgent?.tools],
|
||||
);
|
||||
|
||||
const provider = useMemo(() => selectedAgent?.provider, [selectedAgent?.provider]);
|
||||
const provider = useMemo(
|
||||
() => agentData?.provider || selectedAgent?.provider,
|
||||
[agentData?.provider, selectedAgent?.provider],
|
||||
);
|
||||
|
||||
const fileSearchAllowedByAgent = useMemo(() => {
|
||||
// Check ephemeral agent settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue