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': 'AI抠图API', 'api_name': 'AI抠图接口', 'api_description': '执行AI抠图操作', 'required_parameters': [{'name': 'file', 'type': 'file', 'description': '待处理的图片文件,支持常见图片格式', 'default': ''}], 'optional_parameters': [{'name': 'output_format', 'type': 'string', 'description': '输出图片格式,可选值:jpg, png', 'default': 'png'}, {'name': 'background_color', 'type': 'string', 'description': '背景颜色,以十六进制表示,例如:#FFFFFF', 'default': '#000000'}], 'method': 'POST'}], 'query': '帮我把这张家人合照的背景去掉,输出格式为jpg。', 'relevant_apis': [{'tool_name': 'AI抠图API', 'api_name': 'AI抠图接口'}], 'query_id': 1, 'claude_score': 5, 'gemini_score': 4, 'translated_query': '帮我把这张家人合照的背景去掉,输出格式为jpg。'} The task is as follows: 帮我把这张家人合照的背景去掉,输出格式为jpg。 You respond:Assistant:
- Assistantjson
{ "Thought": "The task is to remove the background from a family photo and output the result in jpg format. The relevant API that can accomplish this task is the 'AI抠图接口', which has the necessary parameters for image processing.", "Action": "AI抠图接口(file='family_photo.jpg', output_format='jpg')" }