mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:31:47 +00:00
fix(vision): guard user_prompt type in video_analyze_tool before debug_call_data construction
This commit is contained in:
parent
6c4aca7adc
commit
5bd937533c
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue