fix(vision): guard user_prompt type in video_analyze_tool before debug_call_data construction
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user