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