From 3049c85e3c63953bcfdbf51ec882275ca9c12aa5 Mon Sep 17 00:00:00 2001 From: Beehive Innovations Date: Mon, 16 Jun 2025 14:51:34 +0400 Subject: [PATCH] Update base.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tools/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/base.py b/tools/base.py index bfab829..d65e2a2 100644 --- a/tools/base.py +++ b/tools/base.py @@ -1078,6 +1078,7 @@ When recommending searches, be specific about what information you need and why _, data = image_path.split(",", 1) # Base64 encoding increases size by ~33%, so decode to get actual size import base64 + actual_size = len(base64.b64decode(data)) actual_size = len(base64.b64decode(data)) total_size_mb += actual_size / (1024 * 1024)