LibreChat/api/app/clients/tools
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
..
.well-known chore: add back BrowserOp, make changes to CI env (#1088) 2023-10-22 13:50:25 -04:00
dynamic refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
structured 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
util 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
AzureAiSearch.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
CodeBrew.js feat: CodeBrew Plugin (#931) 2023-09-13 11:51:53 -04:00
DALL-E.js 🔥🚀 feat: CDN (Firebase) & feat: account section (#1438) 2023-12-29 21:42:19 -05:00
GoogleSearch.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
HumanTool.js refactor: Client Classes & Azure OpenAI as a separate Endpoint (#532) 2023-07-03 16:51:12 -04:00
index.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
manifest.json bug fix: remove 3rd party code interpreter (#1306) 2023-12-07 14:27:52 -05:00
saveImageFromUrl.js feat(saveImageFromUrl): Dynamic Extension Handling (#1514) 2024-01-07 15:22:33 -05:00
SelfReflection.js ci(backend-review.yml): add linter step to the backend review workflow (#625) 2023-07-14 09:36:49 -04:00
StableDiffusion.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
wolfram-guidelines.md refactor: Client Classes & Azure OpenAI as a separate Endpoint (#532) 2023-07-03 16:51:12 -04:00
Wolfram.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00