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

This commit is contained in:
bigcat88 2025-10-03 18:39:59 +03:00
parent 4ffea0e864
commit 20724f3dbb
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721
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",
]