Skip to content

Commit 56ee072

Browse files
committed
Fix vision tool.
1 parent 64d5ed1 commit 56ee072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agentstack/_tools/vision/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ def analyze_image(image_path_or_url: str) -> str:
126126
return _analyze_web_image(image_path_or_url, media_type)
127127

128128
if permissions.allowed_dirs:
129-
if not _is_path_allowed(image_path_url, permissions.allowed_dirs):
129+
if not _is_path_allowed(image_path_or_url, permissions.allowed_dirs):
130130
return (
131-
f"Error: Access to file {image_path_url} is not allowed. "
131+
f"Error: Access to file {image_path_or_url} is not allowed. "
132132
f"Allowed directories: {permissions.allowed_dirs}"
133133
)
134134

0 commit comments

Comments
 (0)