From 1add6c8240685069ccc4c06bf50aa2321cccafc1 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sat, 28 Feb 2026 12:59:04 -0600 Subject: [PATCH] fix: remove unsupported AutomaticFunctionCallingConfig parameter (refs #231) The installed google-genai version does not support max_remote_calls on AutomaticFunctionCallingConfig, causing a pydantic validation error that broke VIN decode on staging. Co-Authored-By: Claude Opus 4.6 --- ocr/app/engines/gemini_engine.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ocr/app/engines/gemini_engine.py b/ocr/app/engines/gemini_engine.py index 8e9d36b..1087736 100644 --- a/ocr/app/engines/gemini_engine.py +++ b/ocr/app/engines/gemini_engine.py @@ -382,9 +382,6 @@ class GeminiEngine: response_mime_type="application/json", response_schema=_VIN_DECODE_SCHEMA, tools=[types.Tool(google_search=types.GoogleSearch())], - automatic_function_calling=types.AutomaticFunctionCallingConfig( - max_remote_calls=3, - ), ), )