From 425faacf89d6d6964c3cc97cb133c6ee14145969 Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Mon, 1 Jun 2026 23:35:51 +0200 Subject: [PATCH] fix: call_gemini_with_retry returns full list for JSON lists, enabling bulk evaluations --- src/gemini_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gemini_utils.py b/src/gemini_utils.py index ee1520d5..85deadcf 100644 --- a/src/gemini_utils.py +++ b/src/gemini_utils.py @@ -363,7 +363,7 @@ async def call_gemini_with_retry(prompt: str, response_format: str = "json", max if match: try: data = json.loads(match.group(0)) - return data[0] if isinstance(data, list) and len(data) > 0 else data + return data except: pass # QUALITY UPGRADE: If flash failed parsing, don't give up on the key, try a Pro model