Skip to content
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

Open
zongking123 opened this issue Jan 24, 2024 · 1 comment
Open

官方提供的remote tool识别ocr报错 #310

zongking123 opened this issue Jan 24, 2024 · 1 comment
Assignees

Comments

@zongking123
Copy link

相关代码如下:
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
}
更换了好几张图片都是报这个错误

@ddz-mark
Copy link

同样的问题,报了个:
File "/Volumes/OSX-HHD/code/py3.11_env/lib/python3.11/site-packages/erniebot_agent/tools/remote_tool.py", line 158, in send_request
raise RemoteToolError(
erniebot_agent.utils.exceptions.RemoteToolError: An error occured in stage . The error message is The resource requested by pp-structure-v2/v2.1/image_structure returned 403:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants