mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
📂 fix: Add version selection for Assistants Endpoint uploads (#3236)
This commit is contained in:
parent
a87d4e0b75
commit
456793772b
1 changed files with 7 additions and 0 deletions
|
@ -165,6 +165,13 @@ const useFileHandling = (params?: UseFileHandling) => {
|
|||
formData.append('model', conversation?.model ?? '');
|
||||
formData.append('message_file', 'true');
|
||||
}
|
||||
if (isAssistantsEndpoint(endpoint) && !formData.get('version')) {
|
||||
const endpointsConfig = queryClient.getQueryData<TEndpointsConfig>([QueryKeys.endpoints]);
|
||||
const version = endpointsConfig?.[endpoint]?.version ?? defaultAssistantsVersion[endpoint];
|
||||
formData.append('version', version);
|
||||
formData.append('model', conversation?.model ?? '');
|
||||
formData.append('message_file', 'true');
|
||||
}
|
||||
|
||||
formData.append('endpoint', endpoint);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue