-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
官方提供的remote tool识别ocr报错 #310
Comments
同样的问题,报了个: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关代码如下:
file_manager = GlobalFileManagerHandler().get()
file = await file_manager.create_file_from_path("road_sign.jpeg")
response = await agent_all.run("帮我把图片中的第一个英语单词进行解释之后添加到单词本中", files=[file])
print(response.text)
报错信息如下:
function_call:
{
"name": "highacc-ocr/v1.8/OCR",
"thoughts": "图片格式错误,我需要重新调用OCR工具来提取图片中的文字。",
"arguments": "{"image":"file-local-e8215a4a-ba5b-11ee-95be-ac1f6bb32462","language_type":"auto_detect"}"
}
INFO - [Tool][Start] RemoteTool is about to start running with input:
{
"image": "file-local-e8215a4a-ba5b-11ee-95be-ac1f6bb32462",
"language_type": "auto_detect"
}
INFO - [Tool][End] RemoteTool finished running with output:
{
"error_msg": "image format error",
"error_code": 216201
}
更换了好几张图片都是报这个错误
The text was updated successfully, but these errors were encountered: