We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d5ed1 commit 56ee072Copy full SHA for 56ee072
agentstack/_tools/vision/__init__.py
@@ -126,9 +126,9 @@ def analyze_image(image_path_or_url: str) -> str:
126
return _analyze_web_image(image_path_or_url, media_type)
127
128
if permissions.allowed_dirs:
129
- if not _is_path_allowed(image_path_url, permissions.allowed_dirs):
+ if not _is_path_allowed(image_path_or_url, permissions.allowed_dirs):
130
return (
131
- f"Error: Access to file {image_path_url} is not allowed. "
+ f"Error: Access to file {image_path_or_url} is not allowed. "
132
f"Allowed directories: {permissions.allowed_dirs}"
133
)
134
0 commit comments