67 Commits
Author SHA1 Message Date
silveroxides caa97c15f1 fix some caching related issues 2025-11-25 21:28:09 +01:00
silveroxides d8c2380292 Fix output name. 2025-11-23 20:39:50 +01:00
silveroxides d3adb48c2c In progress migration to V3 and update of code. 2025-11-23 19:32:23 +01:00
silveroxides 0a3e58d19f Bump version to 1.1.1 2025-11-19 16:27:03 +01:00
silveroxides 30182ed01c Make setting thinking level, thoughts and media resolution simpler 2025-11-19 16:26:37 +01:00
silveroxides 30c011fae7 Bump version to 1.1.0 2025-11-18 18:37:06 +01:00
silveroxides a8a21afd41 Add gemini-3.0-pro-preview and update google-genai to 1.51.0 2025-11-18 18:31:45 +01:00
silveroxides 8a596868d8 Bump version to 1.0.8 2025-11-14 12:41:32 +01:00
silveroxides 233930afde Make Include images False by default 2025-11-14 12:40:35 +01:00
silveroxides 23319cd8d3 Bump version to 1.0.7 2025-11-14 12:38:11 +01:00
silveroxides 663b110267 adjust available models list 2025-11-14 12:37:22 +01:00
silveroxides 5ae71c4f13 add presets.toml for storing presets 2025-11-05 14:11:54 +01:00
silveroxides d94b9c04f3 Bump version to 1.0.6 2025-11-05 13:18:44 +01:00
silveroxides bd714aa933 Add response tiomout setting 2025-11-05 13:18:12 +01:00
silveroxides 8380eb6880 Bump version to 1.0.5 2025-11-03 20:56:30 +01:00
silveroxides 30be4bd937 Add proper seed based cache so so that when set to fixed seed and no changes made, it will not send additional requests 2025-11-03 20:55:48 +01:00
silveroxides c7cffb70ae bump version to 1.0.4 2025-10-28 11:53:38 +01:00
silveroxides 0a012c95fa update seed stuff 2025-10-28 11:53:04 +01:00
silveroxides eba769425c Bump version to 1.0.3 2025-10-20 06:09:11 +02:00
silveroxides 0f0a87e469 add json based api key getter and updated genai 2025-10-20 06:08:22 +02:00
silveroxides 4a25928934 add nano-banana maybe? 2025-08-30 20:57:53 +02:00
silveroxides 307c269e0e bump version to 1.0.2 2025-07-16 03:31:40 +02:00
silveroxides 44ec325dac correct thinking budget option range 2025-07-16 03:31:06 +02:00
silveroxides 6219268375 push version to 1.0.1 2025-07-16 03:11:42 +02:00
silveroxides 989c1d595b add thinking_budget option with tooltip 2025-07-16 03:09:19 +02:00
silveroxides 9bb8a16530 reduce retries to 1 and correct SafetySettings 2025-07-13 14:16:29 +02:00
silveroxides 892a215f13 Make image generation work with 2.0-flash-exp 2025-06-24 16:58:53 +02:00
silveroxides ce29c7f6d3 add api_version to config and more models 2025-06-21 11:39:00 +02:00
silveroxides 2d5d99b22b better bypass method 2025-06-12 19:14:25 +02:00
Silver a7373c972a Update README.md 2025-06-11 23:19:01 +02:00
Silver 0ddd8344ce Merge pull request #5 from silveroxides/add-bypass-mode
Add bypass mode
2025-06-11 11:09:24 +02:00
silveroxides b2c8f96726 edit function name 2025-06-11 11:08:44 +02:00
google-labs-jules[bot] 74031df9bc feat: Update padding character to Word Joiner (U+2060)
This commit updates the padding character in the `bypass_mode` feature of the `SSL_GeminiTextPrompt` node. The padding now uses the Word Joiner character (U+2060) instead of underscores.

The `_pad_text_with_underscores` method has been modified to implement this change. Text processed by this function will now have each character separated by U+2060, and the entire string will be prepended and appended with U+2060. For example, "hello" becomes "⁠h⁠e⁠l⁠l⁠o⁠".
2025-06-11 09:05:39 +00:00
google-labs-jules[bot] 80d5a8f2a9 feat: Add bypass_mode to SSL_GeminiTextPrompt
This commit introduces a new `bypass_mode` multiple choice input to the `SSL_GeminiTextPrompt` node. This feature allows you to choose whether to apply a special underscore padding to the "system_instruction", the "prompt", or "both" before sending them to the Gemini API. The padding format is `_c_h_a_r_a_c_t_e_r_s_`.

The following changes were made:
- Added `bypass_mode` to the `INPUT_TYPES` with options: "None", "system_instruction", "prompt", "both".
- Implemented a helper method `_pad_text_with_underscores` to perform the character padding.
- Modified the `generate` method to:
    - Accept `bypass_mode` as a parameter.
    - Conditionally apply padding to `system_instruction` and `prompt` based on the selected `bypass_mode`.
    - Use the (potentially) padded text in the API call to Gemini.
2025-06-11 09:00:12 +00:00
silveroxides 30926703e2 edit category and api client config 2025-06-11 10:47:43 +02:00
silveroxides d53ce49d49 Merge branch 'main' of https://github.com/silveroxides/ComfyUI_Gemini_Expanded_API 2025-06-11 04:34:00 +02:00
silveroxides 02094557e1 improve retry logic 2025-06-11 04:33:30 +02:00
Silver 5281e57449 Update README.md 2025-05-29 05:54:34 +02:00
Silver a4e7d75664 Merge pull request #4 from silveroxides/translation-and-retry-logic
Fix: Expand API retry logic to cover response processing.
2025-05-24 23:51:06 +02:00
google-labs-jules[bot] fdefe8f87e Fix: Expand API retry logic to cover response processing.
The retry mechanism in `api_call` now encloses both the API call
itself (`client.models.generate_content`) and the subsequent processing
of the response (extraction of text and image data).

This addresses an issue where a 'NoneType' error could occur during
response processing after a technically successful API call, and this
error would not trigger a retry.

The `api_call` function will now attempt the entire sequence (call + process)
up to 3 times with exponential backoff (1s, 2s) if any exception occurs
during this sequence.
2025-05-24 21:49:49 +00:00
Silver 0c94d081dd Merge pull request #3 from silveroxides/translation-and-retry-logic
I translated all Chinese comments and user-facing string literals in …
2025-05-24 23:36:51 +02:00
google-labs-jules[bot] 60597b141f I translated all Chinese comments and user-facing string literals in gemini_nodes.py to English. I also modified the api_call function in SSL_GeminiTextPrompt to retry up to 3 times with a 1-second delay between attempts before throwing an exception. 2025-05-24 21:36:16 +00:00
Silver 286cb42296 Merge pull request #2 from silveroxides/translate-readme-to-english
Translate README.md to English
2025-05-21 19:28:59 +02:00
google-labs-jules[bot] 32107a72fd Translate README.md to English
This commit translates the README.md file from Chinese to English.
The translation includes all sections of the README, preserving technical details, formatting, and contact information.
The translated README has been reviewed for clarity, grammar, and accuracy to ensure it is easily understandable for an English-speaking audience.
2025-05-21 17:27:51 +00:00
Silver 884c9cacda Update gemini_nodes.py 2025-05-08 16:19:57 +02:00
Silver da9ec16e14 Merge pull request #1 from silveroxides/expand-functionality
Expand functionality
2025-05-07 18:49:07 +02:00
silveroxides 8f50542996 Update name and prepare to publish 2025-05-07 18:47:06 +02:00
silveroxides 49df442cdf Expand and Reconfigure 2025-05-07 18:42:33 +02:00
tatookan 2822942e11 Update README.md 2025-03-19 23:54:43 +08:00
tatookan 818ea2cc8b Update pyproject.toml 2025-03-19 23:49:01 +08:00