Skip to content

Commit 8a29337

Browse files
authored
fix(api-nodes): reimport of base64 in Gemini node (#10181)
1 parent ed3ca78 commit 8a29337

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

comfy_api_nodes/nodes_gemini.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ def create_file_part(self, file_path: str) -> GeminiPart:
490490
# Use base64 string directly, not the data URI
491491
with open(file_path, "rb") as f:
492492
file_content = f.read()
493-
import base64
494493
base64_str = base64.b64encode(file_content).decode("utf-8")
495494

496495
return GeminiPart(

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,5 @@ messages_control.disable = [
7373
"pointless-string-statement",
7474
"inconsistent-return-statements",
7575
"import-outside-toplevel",
76-
"reimported",
7776
"redefined-outer-name",
7877
]

0 commit comments

Comments
 (0)