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. |
||
|---|---|---|
| .. | ||
| .well-known | ||
| dynamic | ||
| structured | ||
| util | ||
| AzureAiSearch.js | ||
| CodeBrew.js | ||
| DALL-E.js | ||
| GoogleSearch.js | ||
| HumanTool.js | ||
| index.js | ||
| manifest.json | ||
| saveImageFromUrl.js | ||
| SelfReflection.js | ||
| StableDiffusion.js | ||
| wolfram-guidelines.md | ||
| Wolfram.js | ||