mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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>
This commit is contained in:
parent
b4a100dfc0
commit
b66c8b409c
1 changed files with 1 additions and 0 deletions
|
|
@ -259,6 +259,7 @@ async def vision_analyze_tool(
|
|||
|
||||
# Check auxiliary vision client availability
|
||||
if _aux_async_client is None or DEFAULT_VISION_MODEL is None:
|
||||
logger.error("Vision analysis unavailable: no auxiliary vision model configured")
|
||||
return json.dumps({
|
||||
"success": False,
|
||||
"analysis": "Vision analysis unavailable: no auxiliary vision model configured. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue