LibreChat/api/server/controllers/agents
Danny Avila cdffdd2926
🏞️ fix: Gemini Image Filenames and Add Tool Cache Safety (#11306)
* 🔧 fix: Handle undefined tool definitions in agent and assistant creation (#11295)

* Updated the tool fetching logic in createAgentHandler, createAssistant, and patchAssistant functions to use nullish coalescing, ensuring that an empty object is returned if no tools are available. This change improves robustness against undefined values in tool definitions across multiple controller files.

* Adjusted the ToolService to maintain consistency in tool definition handling.

* 🔧 fix: Update filename generation in createToolEndCallback function

* Modified the filename generation logic to remove the tool_call_id from the filename, simplifying the naming convention for saved images. This change enhances clarity and consistency in the generated filenames.
2026-01-12 09:01:23 -05:00
..
__tests__ 💻 feat: Deeper MCP UI integration in the Chat UI (#9669) 2025-12-11 16:41:11 -05:00
callbacks.js 🏞️ fix: Gemini Image Filenames and Add Tool Cache Safety (#11306) 2026-01-12 09:01:23 -05:00
client.js ⏭️ fix: Skip Title Generation for Temporary Chats (#11282) 2026-01-09 14:34:30 -05:00
client.test.js ⏭️ fix: Skip Title Generation for Temporary Chats (#11282) 2026-01-09 14:34:30 -05:00
errors.js 🛜 refactor: Streamline App Config Usage (#9234) 2025-08-26 12:10:18 -04:00
request.js 🏞️ fix: Image Preview Refactor with Accessibility Enhancements (#11217) 2026-01-05 16:31:35 -05:00
v1.js 🏞️ fix: Gemini Image Filenames and Add Tool Cache Safety (#11306) 2026-01-12 09:01:23 -05:00
v1.spec.js 🔧 fix: Clean empty strings from model_parameters for Agents/OpenAI (#11248) 2026-01-07 11:26:53 -05:00