danny-avila / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Assistants API, Azure, Groq, GPT-4 Vision, Mistral, Bing, Anthropic, OpenRouter, Vertex AI, Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://librechat.ai/
MIT License
15.1k stars 2.5k forks source link

[Bug]: Azure OpenAI Assistants Downloads error #3216

Open kezzzsVS opened 3 days ago

kezzzsVS commented 3 days ago

What happened?

Attempting to download generated files from Azure OpenAI Assistants results in a 500 Internal Server Error. I can confirm that the generated file is available to download correctly from the Azure OpenAI Studio.

Steps to Reproduce

1) Setup an assistant with Code Interpreter enabled 2) Use assistant and ask to generate a text file containing a random paragraph 3) The file will be generated 4) Click the download link with Chrome Dev Tools open, and check the network tab to observe the 500 Internal server error

What browsers are you seeing the problem on?

No response

Relevant log output

/app/api/logs $ cat error-2024-06-27.log 
{"level":"error","message":"Error downloading file: Assistants API key not provided. Please provide it again.","stack":"Error: Assistants API key not provided. Please provide it again.\n    at initializeClient (/app/api/server/services/Endpoints/assistants/initializeClient.js:54:11)\n    at /app/api/server/routes/files/files.js:116:32\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}
/app/api/logs $

Screenshots

image

image

Code of Conduct