fix(api-nodes): reimport of base64 in Gemini node (#10181)

This commit is contained in:
Alexander Piskun 2025-10-03 21:40:27 +03:00 committed by GitHub
parent ed3ca78e08
commit 8a293372ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View File

@ -490,7 +490,6 @@ class GeminiInputFiles(ComfyNodeABC):
# Use base64 string directly, not the data URI
with open(file_path, "rb") as f:
file_content = f.read()
import base64
base64_str = base64.b64encode(file_content).decode("utf-8")
return GeminiPart(

View File

@ -73,6 +73,5 @@ messages_control.disable = [
"pointless-string-statement",
"inconsistent-return-statements",
"import-outside-toplevel",
"reimported",
"redefined-outer-name",
]