Skip to content

Commit 1becdd5

Browse files
authored
fix(tool): fix bug where os-vision tools wrongly use path from sandbox for reading images. (#64)
* upd: add futurex evaluation support. * upd: support multiple eval for futurex and add relavent doc. * upd: fix bugs with doc for futurex. * debug: fix wrong calling path. * add preparation for finsearchcomp. * update a premature version of finsearchcomp benchmark. * clean redundent code in merging. * upd: modify yaml to use Mirothinker as the main agent, add check progress file to exclude T1. * upd: check_progress function for finsearchcomp now consider globe and greater china respectively. * upd: add docs and shell script for multiple runs. * fix: check_finsearchcomp_progress not displaying results from greater china region. * fix: catch ContextLimitError in more observed cases. * initialize open source tools for audio, vision and reasoning. * upd: docs for open-source tools. * fix wrong date. * fix bug with os vision_mcp_server loading images from sandbox paths.
1 parent 6cd8689 commit 1becdd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tool/mcp_servers/vision_mcp_server_os.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ async def visual_question_answering(image_path_or_url: str, question: str) -> st
9292
)
9393
else:
9494
return f"Failed to fetch image from URL: {image_path_or_url}"
95+
elif "home/user" in image_path_or_url:
96+
return "The visual_question_answering tool cannot access to sandbox file, please use the local path provided by original instruction"
9597
else:
9698
messages_for_llm[0]["content"][0]["image_url"]["url"] = image_path_or_url
9799

0 commit comments

Comments
 (0)