Skip to content

Commit b66c8b4

Browse files
teknium1aydnOktay
andcommitted
fix(vision): log error when vision client is unavailable
Previously the early return for unconfigured vision model was silent. Now logs an error so the failure is visible in logs for debugging. Inspired by PR #839 by aydnOktay. Co-authored-by: aydnOktay <aydnOktay@users.noreply.github.com>
1 parent b4a100d commit b66c8b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/vision_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ async def vision_analyze_tool(
259259

260260
# Check auxiliary vision client availability
261261
if _aux_async_client is None or DEFAULT_VISION_MODEL is None:
262+
logger.error("Vision analysis unavailable: no auxiliary vision model configured")
262263
return json.dumps({
263264
"success": False,
264265
"analysis": "Vision analysis unavailable: no auxiliary vision model configured. "

0 commit comments

Comments
 (0)