Impossible to upload files when using assistants into Azure OpenAI, neither in the knowledge base, nor in the chat session #3117
Unanswered
djuillard
asked this question in
Troubleshooting
Replies: 1 comment 4 replies
-
This is because Assistants through Azure are still using their "v1" implementation, where retrieval/file search was not possible I started work on migrating it to v2 already, and will implement it soon: #2820 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I setup Librechat with docker-compose. I first used openai API directly, but for security purpose, I now want to swtich to Azure Openai (and in the end remove openai endpoint to only use Azure Openai).
I managed to setup openai endpoint and make it work for chat completions, and also for Assistants (both on azure openai).
For chat completion, I set up the environment variables to make it use azure openai embeddings through the RAG_API service, and it works fine : I can load a file in the chat session, and the RAG mecanism works well.
But when it comes to azure assistants, chat conversation works (and the assistant follows the instructions I have written), but I cannot upload any file, neither into the "knowledge" part of the assistant builder, nor in the chat windows, even though these 2 errors seem differents.
when I try load a file in the upload section of the assistant builder (as described in the screenshot below), I get the following error in the logs :

LibreChat-API | 2024-06-19 13:25:12 error: [/files] Error processing file: 404 Resource not found
when I try to upload a file in the chat window of the assistant mode, I get an error directly in the chat window saying that "the Assistant run failed to initialize. Try sending a message in a new conversation". And I also got a more detailed error message in the logs :

LibreChat-API | 2024-06-19 13:28:38 error: [/assistants/chat/] 400 Unknown parameter: 'file_ids'.
Here is how I configured my .env file (for security purpose, I removed the secrets of course) :
And here is how I configured my librechat.yaml file :
Beta Was this translation helpful? Give feedback.
All reactions