Commit Graph
43 Commits
Author SHA1 Message Date
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
tatookan c7040f0ac0 Update README.md 2025-03-19 23:47:54 +08:00
tatookan 89cdc39a68 Rename demo2 to demo2.png 2025-03-19 23:46:32 +08:00
tatookan f11bceff23 demo2 image 2025-03-19 23:46:11 +08:00
tatookan f98986b387 Add files via upload 2025-03-19 23:45:33 +08:00
tatookan f3cf36de68 Update can upload multi-image processing 2025-03-19 23:45:00 +08:00
tatookan bdf46614ff Update requirements.txt
Updating the Required Dependencies Indication
2025-03-19 10:00:36 +08:00
tatookan 2d09efcf95 Update pyproject.toml
Comfy Registry
2025-03-17 11:15:29 +08:00
tatookan 188f54dd89 Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2025-03-17 10:38:40 +08:00
tatookan c9239c9640 Update pyproject.toml
PublisherId
2025-03-17 10:35:58 +08:00
tatookan 85ac65e91a Merge pull request #3 from ComfyNodePRs/pyproject
Add pyproject.toml for Custom Node Registry

Hello.
I am pleased to receive your invitation to join the Comfy Registry, thank you! I will complete the node registration later
2025-03-17 10:34:15 +08:00
snomiao 84618547ac chore(publish): Add Github Action for Publishing to Comfy Registry 2025-03-15 20:56:39 +00:00
snomiao c31a4a20f4 chore(pyproject): Add pyproject.toml for Custom Node Registry 2025-03-15 19:57:50 +00:00
tatookan 2bd13f53d5 Update gemini_nodes.py
Fix seed not working
2025-03-15 15:04:20 +08:00
tatookan 82cb8c1cba Update README.md 2025-03-15 11:22:02 +08:00
tatookan f3ae085e90 README 2025-03-15 11:13:06 +08:00
tatookan df9d1f6c94 demo up 2025-03-15 11:09:23 +08:00
tatookan 9b75ff3150 主分支上传 2025-03-15 11:05:37 +08:00