feat: enable azure v2 assistant with file search #5031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds support for Azure v2 assistant and file search functionality in LibreChat. Previously, the library supported OpenAI assistants and Azure OpenAI, but it lacked support for
Azure v2 assistants
and the ability to performfile_search
. I have implemented the required functionality to enableAzure v2 assistants
and integrated vector store-based file upload, allowing users to upload files for file search functionality in Azure OpenAI.This update helps users who wish to use the LibreChat library with Azure v2 assistants and provides an enhanced file search experience.
Change Type
Testing
To test the changes, I configured an Azure v2 assistant and verified the file search functionality. I also tested the vector store-based file upload, ensuring that files can be uploaded and used for searching within the Azure OpenAI assistant. The tests involved using both sample and custom data to ensure robustness.
Test Configuration:
Checklist
Note:
These changes were done in collaboration with Network Ninja, Inc and GeeksOfKolachi