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="")", }codeThe API information is as follows: {'country': 'China', 'api_name': [{'tool_name': '图片识别OCR', 'api_name': '图片识别OCR接口', 'api_description': '通过图片URL识别图片中的文字', 'required_parameters': [{'name': 'image_url', 'type': 'string', 'description': '要识别的图片URL', 'default': ''}], 'optional_parameters': [], 'method': 'GET'}], 'query': '请获取这张图片中的所有文字内容,链接是https://example.com/photo', 'relevant_apis': [{'tool_name': '图片识别OCR', 'api_name': '图片识别OCR接口'}], 'query_id': 13, 'claude_score': 5, 'gemini_score': 5, 'translated_query': '请获取这张图片中的所有文字内容,链接是https://example.com/photo.'} The task is as follows: 请获取这张图片中的所有文字内容,链接是https://example.com/photo. You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires retrieving the text content from an image using its URL, and the provided API information indicates the use of the '图片识别OCR接口' for this purpose. This API is designed to extract text from an image when given an image URL as a parameter.", "Action": "图片识别OCR接口(image_url=\"https://example.com/photo\")" }