From 6c4aca7adca44e67e45f85b143a46ed3d88a7328 Mon Sep 17 00:00:00 2001 From: sprmn24 Date: Mon, 4 May 2026 00:32:53 +0300 Subject: [PATCH] fix(vision): guard user_prompt type before debug_call_data construction --- tools/vision_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/vision_tools.py b/tools/vision_tools.py index e7389e3ef..dd3771578 100644 --- a/tools/vision_tools.py +++ b/tools/vision_tools.py @@ -440,6 +440,8 @@ async def vision_analyze_tool( - For local file paths, the file is used directly and NOT deleted - Supports common image formats (JPEG, PNG, GIF, WebP, etc.) """ + if not isinstance(user_prompt, str): + user_prompt = str(user_prompt) if user_prompt is not None else "" debug_call_data = { "parameters": { "image_url": image_url,