fix(vision): guard user_prompt type before debug_call_data construction

This commit is contained in:
sprmn24
2026-05-04 00:32:53 +03:00
committed by Teknium
parent a5cae16496
commit 6c4aca7adc

View File

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