mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
- Enhanced the `saveImageFromUrl` function to dynamically handle file extensions based on the content type of the fetched image. - Replaced the method of appending a '.png' extension with a more robust approach using regular expressions and the path module. - Allows for correct extension replacement or addition, ensuring filename consistency and compatibility with the actual image format. - Prevents issues with double extensions (e.g., 'someimage.jpg.png') and aligns saved file types with their respective content types. |
||
|---|---|---|
| .. | ||
| agents | ||
| callbacks | ||
| chains | ||
| document | ||
| llm | ||
| memory | ||
| output_parsers | ||
| prompts | ||
| specs | ||
| tools | ||
| AnthropicClient.js | ||
| BaseClient.js | ||
| ChatGPTClient.js | ||
| GoogleClient.js | ||
| index.js | ||
| OpenAIClient.js | ||
| PluginsClient.js | ||
| TextStream.js | ||