LibreChat/api/app
Danny Avila c9aaf502af
feat(saveImageFromUrl): Dynamic Extension Handling (#1514)
- 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.
2024-01-07 15:22:33 -05:00
..
clients feat(saveImageFromUrl): Dynamic Extension Handling (#1514) 2024-01-07 15:22:33 -05:00
bingai.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
chatgpt-browser.js chore: switch from @waylaidwanderer/chatgpt-api to nodejs-gpt for latest fixes (#1050) 2023-10-14 13:06:50 -04:00
index.js refactor: Encrypt & Expire User Provided Keys, feat: Rate Limiting (#874) 2023-09-06 10:46:27 -04:00
titleConvoBing.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00