Skip to content

Commit

Permalink
fixed issue where it can't see media from view_media_artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 25, 2024
1 parent 0a42374 commit 2f05f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/tools/meta_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def check_and_load_image(code: str) -> List[str]:
if not code.strip():
return []

pattern = r"show_media_artifact\(\s*([^\)]+),\s*['\"]([^\)]+)['\"]\s*\)"
pattern = r"view_media_artifact\(\s*([^\)]+),\s*['\"]([^\)]+)['\"]\s*\)"
match = re.search(pattern, code)
if match:
name = match.group(2)
Expand Down

0 comments on commit 2f05f18

Please sign in to comment.