Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔬 fix: File Search Request Format (Azure Assistants API) (#7404)
arthurolivierfortin59109cd2dd4c
diff --git a/api/server/controllers/assistants/chatV1.js b/api/server/controllers/assistants/chatV1.jsindex 5fa10e9e37..9129a6a1c1 100644--- a/api/server/controllers/assistants/chatV1.js+++ b/api/server/controllers/assistants/chatV1.js@@ -326,8 +326,15 @@ const chatV1 = async (req, res) => {file_ids = files.map(({ file_id }) => file_id);if (file_ids.length || thread_file_ids.length) {- userMessage.file_ids = file_ids;attachedFileIds = new Set([...file_ids, ...thread_file_ids]);+ if (endpoint === EModelEndpoint.azureAssistants) {+ userMessage.attachments = Array.from(attachedFileIds).map((file_id) => ({+ file_id,+ tools: [{ type: 'file_search' }],+ }));+ } else {+ userMessage.file_ids = Array.from(attachedFileIds);+ }}};