fix(vision): guard user_prompt type in video_analyze_tool before debug_call_data construction

This commit is contained in:
sprmn24 2026-05-04 00:44:47 +03:00 committed by Teknium
parent 6c4aca7adc
commit 5bd937533c

View file

@ -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,