From 5bd937533c9cef3646d1e464f9a9a3aabec7b774 Mon Sep 17 00:00:00 2001 From: sprmn24 Date: Mon, 4 May 2026 00:44:47 +0300 Subject: [PATCH] fix(vision): guard user_prompt type in video_analyze_tool 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 dd3771578b..611e6bcef6 100644 --- a/tools/vision_tools.py +++ b/tools/vision_tools.py @@ -918,6 +918,8 @@ async def video_analyze_tool( model: str = None, ) -> str: """Analyze a video via multimodal LLM. Returns JSON {success, analysis}.""" + if not isinstance(user_prompt, str): + user_prompt = str(user_prompt) if user_prompt is not None else "" debug_call_data = { "parameters": { "video_url": video_url,