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': '文件上传API', 'api_name': '文件上传接口', 'api_description': '用于上传文件并获取云链接的服务接口。', 'required_parameters': [{'name': 'file', 'type': 'file', 'description': '需要上传的文件内容。', 'default': ''}, {'name': 'filename', 'type': 'string', 'description': '上传文件的名称。', 'default': ''}], 'optional_parameters': [{'name': 'overwrite', 'type': 'boolean', 'description': '是否覆盖同名文件,默认为false。', 'default': False}], 'method': 'POST'}], 'query': '请将照片文件上载,并将文件命名为“家庭聚会.jpg”。', 'relevant_apis': [{'tool_name': '文件上传API', 'api_name': '文件上传接口'}], 'query_id': 4, 'claude_score': 4, 'gemini_score': 4, 'translated_query': '请将照片上传并将文件命名为“家庭聚会.jpg”。'} The task is as follows: 请将照片上传并将文件命名为“家庭聚会.jpg”。 You respond:Assistant:
- Assistant
{ "Thought": "The task requires uploading a photo file and naming it '家庭聚会.jpg'. I will use the '文件上传接口' API for this purpose by supplying the necessary parameters.", "Action": "文件上传接口(file='the_photo_file', filename='家庭聚会.jpg', overwrite=False)" }