Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix(gemini_assist): remove unused base64 import and _image_to_base64 function

haorui-harryb1ef1a268be5
diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py b/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py
index 623c1dcb6..e4066e904 100644
--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py
+++ b/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py
@@ -38,7 +38,7 @@ Usage:
from __future__ import annotations
-import base64
+
import json
import os
from pathlib import Path
@@ -124,10 +124,6 @@ def _load_image_bytes(path: str) -> bytes:
return f.read()
-def _image_to_base64(data: bytes) -> str:
- return base64.b64encode(data).decode("utf-8")
-
-
# ── Step validation ───────────────────────────────────────────────────────────
_ALLOWED_TYPES = {