gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
You are an expert at using APIs as tools, and you are an expert in multilingual…
- User
System: You are an expert at using APIs as tools, and you are an expert in multilingual countries. I will give you a task and api info you will use the API to complete it. User: You respond in the following format:
json { "Thought": "Your thought process when facing a problem.", "Action": "The API you chose and its parameter information. For example api_name(parameter_1="",parameter_2="")", }The API information is as follows: {'country': 'China', 'api_name': [{'tool_name': 'ORC图像识别文本API', 'api_name': 'ORC图像识别文本接口', 'api_description': '通过POST请求上传图片文件,API将返回图片中的文本内容。', 'required_parameters': [{'name': 'imageFile', 'type': 'file', 'description': '上传您的图片文件,支持常见的图片格式。', 'required': True}], 'optional_parameters': [], 'method': 'POST'}], 'query': '我需要整理这份海报中的文字信息,你能从图片中提取这些内容吗?', 'relevant_apis': [{'tool_name': 'ORC图像识别文本API', 'api_name': 'ORC图像识别文本接口'}], 'query_id': 6, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '我需要整理这张海报上的文字信息,你能从图片中提取这些内容吗?'} The task is as follows: 我需要整理这张海报上的文字信息,你能从图片中提取这些内容吗? You respond:Assistant:
- Assistant
{ "Thought": "The task involves extracting text from an image of a poster. The provided API, ORC图像识别文本接口, is suitable for this task as it is designed to recognize and extract text from an uploaded image.", "Action": "ORC图像识别文本接口(imageFile='<path_to_your_image_file>')" }