The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(api-nodes): reimport of base64 in Gemini node (#10181)
Alexander Piskun8a293372ecde
diff --git a/comfy_api_nodes/nodes_gemini.py b/comfy_api_nodes/nodes_gemini.pyindex baa379b75..151cb4044 100644--- a/comfy_api_nodes/nodes_gemini.py+++ b/comfy_api_nodes/nodes_gemini.py@@ -490,7 +490,6 @@ class GeminiInputFiles(ComfyNodeABC):# Use base64 string directly, not the data URIwith open(file_path, "rb") as f:file_content = f.read()- import base64base64_str = base64.b64encode(file_content).decode("utf-8")return GeminiPart(diff --git a/pyproject.toml b/pyproject.tomlindex 598af4157..7952f7f37 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -73,6 +73,5 @@ messages_control.disable = ["pointless-string-statement","inconsistent-return-statements","import-outside-toplevel",- "reimported","redefined-outer-name",]