mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-02 12:22:22 +00:00
🔧 fix: legacy file upload UX checks in processFileURL and processAgentFileUpload
This commit is contained in:
parent
f6e78e0a97
commit
bf04cd7f83
1 changed files with 2 additions and 3 deletions
|
|
@ -439,8 +439,7 @@ const processFileURL = async ({
|
|||
};
|
||||
|
||||
const resolveDefaultUploadLLMDeliveryPath = ({ file, endpointConfig, fileConfig }) => {
|
||||
const isLegacyFileUploadUX =
|
||||
endpointConfig?.legacyFileUploadUX === true || fileConfig?.legacyFileUploadUX === true;
|
||||
const isLegacyFileUploadUX = endpointConfig?.legacyFileUploadUX === true;
|
||||
if (isLegacyFileUploadUX) {
|
||||
return 'provider';
|
||||
}
|
||||
|
|
@ -712,7 +711,7 @@ const processAgentFileUpload = async ({ req, res, metadata }) => {
|
|||
const endpointConfig = getEndpointFileConfig({ fileConfig, endpoint });
|
||||
|
||||
if (agent_id && !tool_resource && !messageAttachment) {
|
||||
if (endpointConfig?.legacyFileUploadUX === true || fileConfig?.legacyFileUploadUX === true) {
|
||||
if (endpointConfig?.legacyFileUploadUX === true) {
|
||||
throw new Error('No tool resource provided for agent file upload');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue