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': 1, 'claude_score': 4, 'gemini_score': 4, 'translated_query': '你能帮我识别这张营业执照上的文字吗?请直接上传图片。'} The task is as follows: 你能帮我识别这张营业执照上的文字吗?请直接上传图片。 You respond:Assistant:
- Assistant
{ "Thought": "The task is to extract text from an image of a business license using an OCR API. The available API, 'ORC图像识别文本接口', can accomplish this by uploading the image file of the business license.", "Action": "ORC图像识别文本接口(imageFile='path_to_your_image_file')" }