LibreChat/client/public/assets
Joseph Licata 200098d992
🍌 feat: Gemini Image Generation Tool (Nano Banana) (#10676)
* Added fully functioning Agent Tool supporting Google's Nano Banana

* 🔧 refactor: Update Google credentials handling in GeminiImageGen.js

* Refactored the credentials path to follow a consistent pattern with other Google service integrations, allowing for an environment variable override.
* Updated documentation in README-GeminiNanoBanana.md to reflect the new credentials handling approach and removed references to hardcoded paths.

* 🛠️ refactor: Remove unnecessary whitespace in handleTools.js

* 🔧 feat: Update Gemini Image Generation Tool

- Bump @google/genai package version to ^1.19.0 for improved functionality.
- Refactor GeminiImageGen to createGeminiImageTool for better clarity and consistency.
- Enhance manifest.json for Gemini Image Tools with updated descriptions and icon.
- Add SVG icon for Gemini Image Tools.
- Implement progress tracking for Gemini image generation in the UI.
- Introduce new toolkit and context handling for image generation tools.

This update improves the Gemini image generation capabilities and user experience.

* 🗑️ chore: Remove outdated Gemini image generation PNG and update SVG icon

- Deleted the obsolete PNG file for Gemini image generation.
- Updated the SVG icon with a new design featuring a gradient and shadow effect, enhancing visual appeal and consistency.

* fix: ESLint formatting and unused variable in GeminiImageGen

* fix: Update default model to gemini-2.5-flash-image

*  feat: Enhance Gemini Image Generation Configuration

- Updated .env.example to include new environment variables for Google Cloud region, service account configuration, and Gemini API key options.
- Modified GeminiImageGen.js to support both user-provided API keys and Vertex AI service accounts, improving flexibility in client initialization.
- Updated manifest.json to reflect changes in authentication methods for the Gemini Image Tools.
- Bumped @google/genai package version to 1.19.0 in package-lock.json for compatibility with new features.

* 🔧 fix: Format Default Service Key Path in GeminiImageGen.js

- Adjusted the return statement in getDefaultServiceKeyPath function for improved readability by formatting it across multiple lines. This change enhances code clarity without altering functionality.

*  feat: Enhance Gemini Image Generation with Token Usage Tracking

- Added `recordTokenUsage` function to track token usage for balance management.
- Integrated token recording into the image generation process.
- Updated Gemini image generation tool to accept optional `aspectRatio` and `imageSize` parameters for improved image customization.
- Updated token values for new Gemini models in the transaction model.
- Improved documentation for image generation tool descriptions and parameters.

*  feat: Add new Gemini models for image generation token limits

- Introduced token limits for 'gemini-3-pro-image' and 'gemini-2.5-flash-image' models.
- Updated token values to enhance the Gemini image generation capabilities.

* 🔧 fix: Update Google Service Key Path for Consistency in Initialization (#11001)

* 🔧 refactor: Update GeminiImageGen for improved file handling and path resolution

- Changed the default service key path to use process.cwd() for better compatibility.
- Replaced synchronous file system operations with asynchronous promises for mkdir and writeFile, enhancing performance and error handling.
- Added error handling for credential file access to prevent crashes when the file does not exist.

* 🔧 refactor: Update GeminiImageGen to streamline API key handling

- Refactored API key checks to improve clarity and consistency.
- Removed redundant checks for user-provided keys, enhancing code readability.
- Ensured proper logging for API key usage across different configurations.

* 🔧 fix: Update GeminiImageGen to handle imageSize support conditionally

- Added a check to ensure imageSize is only applied if the gemini model does not include 'gemini-2.5-flash-image', improving compatibility.
- Enhanced the logic for setting imageConfig to prevent potential issues with unsupported configurations.

* 🔧 refactor: Simplify local storage condition in createGeminiImageTool function

* 🔧 feat: Enhance image format handling in GeminiImageGen with conversion support

* 🔧 refactor: Streamline API key initialization in GeminiImageGen

- Simplified the handling of API keys by removing redundant checks for user-provided keys.
- Updated logging to reflect the new priority order for API key usage, enhancing clarity and consistency.
- Improved code readability by consolidating key retrieval logic.

---------

Co-authored-by: Dev Bhanushali <dev.bhanushali@hingehealth.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
2026-01-03 11:26:46 -05:00
..
anyscale.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
apipie.png 🥧 feat: APIpie support (#2524) 2024-04-24 20:32:18 -04:00
apple-touch-icon-180x180.png 🤖 feat: 192x192 Icon for Android PWA (#5966) 2025-02-22 17:17:35 -05:00
bingai-jb.png fix: sharpness in Bing Chat icon (#648) 2023-07-15 08:25:11 -04:00
bingai.png fix: sharpness in Bing Chat icon (#648) 2023-07-15 08:25:11 -04:00
c.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
cohere.png 🧠 feat: Cohere support as Custom Endpoint (#2328) 2024-04-05 15:19:41 -04:00
cplusplus.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
deepseek.svg 🐋 feat: Known Endpoints: DeepSeek (#3776) 2024-08-25 15:33:03 -04:00
favicon-16x16.png style: adjust icon scale, favicon, azure icon; chore: convert files to TSX; ci: unit tests for generation buttons (#987) 2023-10-03 10:28:19 -04:00
favicon-32x32.png style: adjust icon scale, favicon, azure icon; chore: convert files to TSX; ci: unit tests for generation buttons (#987) 2023-10-03 10:28:19 -04:00
fireworks.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
fortran.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
gemini_image_gen.svg 🍌 feat: Gemini Image Generation Tool (Nano Banana) (#10676) 2026-01-03 11:26:46 -05:00
go.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
google-palm.svg fix: add PaLM icon as SVG and improve meilisearch syncing to prevent large indicing jobs (#600) 2023-07-07 02:03:23 -04:00
google.svg ℹ️ feat: Add icons for Google, OpenAI, and Qwen endpoints (#7428) 2025-05-29 08:32:41 -04:00
groq.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
helicone.svg 🌉 feat: Integrate Helicone AI Gateway Provider (#10287) 2025-11-13 08:45:32 -05:00
huggingface.svg 🤗 feat: Known Endpoints: HuggingFace (#2646) 2024-05-09 14:26:47 -04:00
icon-192x192.png 🤖 feat: 192x192 Icon for Android PWA (#5966) 2025-02-22 17:17:35 -05:00
image_gen_oai.png 🎨 feat: OpenAI Image Tools (GPT-Image-1) (#7079) 2025-04-26 04:30:58 -04:00
logo.svg 🪟 fix+feat: General UI Enhancements (#2619) 2024-05-09 17:46:16 -04:00
maskable-icon.png 🤖 feat: 192x192 Icon for Android PWA (#5966) 2025-02-22 17:17:35 -05:00
mistral.png 🧊 style: Adjust Endpoint Icons (#2070) 2024-03-11 13:40:31 -04:00
mlx.png 🍎 feat: Apple MLX as Known Endpoint (#2580) 2024-05-01 03:27:02 -04:00
nodedotjs.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
ollama.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
openai.svg ℹ️ feat: Add icons for Google, OpenAI, and Qwen endpoints (#7428) 2025-05-29 08:32:41 -04:00
openrouter.png 💫 feat: Config File & Custom Endpoints (#1474) 2024-01-03 09:22:48 -05:00
openweather.png 🌤️ feat: Add OpenWeather Tool for Weather Data Retrieval (#5246) 2025-01-10 08:54:08 -05:00
perplexity.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
php.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
python.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
qwen.svg ℹ️ feat: Add icons for Google, OpenAI, and Qwen endpoints (#7428) 2025-05-29 08:32:41 -04:00
r.svg ®️ feat: Support Rscript for Code Interpreter & recursionLimit for Agents (#5170) 2025-01-03 16:50:00 -05:00
rust.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
shuttleai.png 🚀 feat: Add ShuttleAI as Known Endpoint (#2152) 2024-03-21 09:17:57 -04:00
silence.mp3 🏄‍♂️ refactor: Optimize Reasoning UI & Token Streaming (#5546) 2025-01-29 19:46:58 -05:00
together.png 🤖feat: add multiple known endpoints (#1917) 2024-02-28 08:46:21 -05:00
tsnode.svg 🎉 feat: Code Interpreter API and Agents Release (#4860) 2024-12-04 15:48:13 -05:00
unify.webp 🌀 feat: Known Endpoints - Unify (#3778) 2024-08-25 19:10:25 -04:00
web-browser.svg feat: claude integration (#552) 2023-07-13 21:35:15 -04:00