You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
同样的问题,报了个:
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:
相关代码如下:
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: