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绘图每天免费400图', 'api_name': 'AI绘图接口', 'api_description': '调用此接口可以生成AI绘图', 'required_parameters': [{'name': 'model', 'type': 'string', 'description': '绘图的AI模型,可选值如:anime, cartoon, abstract, etc.', 'default': ''}, {'name': 'prompt', 'type': 'string', 'description': '绘制内容的描述,如:一个卡通风格的咖啡店', 'default': ''}], 'optional_parameters': [{'name': 'size', 'type': 'string', 'description': '图像大小,如:1024x1024', 'default': '1024x1024'}, {'name': 'style', 'type': 'string', 'description': '绘图风格,如:watercolor, oilpainting, etc.', 'default': 'default'}], 'method': 'GET'}], 'query': '请为我绘制一幅抽象风格的山水画,尺寸设置为1024x1024。', 'relevant_apis': [{'tool_name': 'AI绘图每天免费400图', 'api_name': 'AI绘图接口'}], 'query_id': 2, 'claude_score': 5, 'gemini_score': 5, 'translated_query': '请为我绘制一幅抽象风格的山水画,尺寸设置为1024x1024。'} The task is as follows: 请为我绘制一幅抽象风格的山水画,尺寸设置为1024x1024。 You respond:Assistant:
- Assistantjson
{ "Thought": "The task requires generating an abstract style landscape painting with specific dimensions. Based on the provided API information, the appropriate API tool to use is 'AI绘图接口'. This API requires specifying the model and prompt as mandatory parameters. Since 'abstract' is the desired style, I will use this as the model and provide an appropriate prompt for landscape painting. Additionally, the size is already defined as 1024x1024, which matches the default, so I don't need to change that.", "Action": "AI绘图接口(model='abstract',prompt='山水画')" }