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', 'api_description': '将用户提供的文字内容转换为图片格式输出', 'required_parameters': [{'name': 'text', 'type': 'string', 'description': '需要转换为图片的文字内容', 'default': ''}], 'optional_parameters': [{'name': 'font_size', 'type': 'int', 'description': '字体大小,可选值:12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60', 'default': '20'}, {'name': 'font_color', 'type': 'string', 'description': '字体颜色,格式为RGB值(例如:#FFFFFF)', 'default': '#000000'}, {'name': 'background_color', 'type': 'string', 'description': '背景颜色,格式为RGB值(例如:#FFFFFF)', 'default': '#FFFFFF'}, {'name': 'image_type', 'type': 'string', 'description': '输出图片格式,可选值:png, jpg', 'default': 'png'}], 'method': 'GET'}], 'query': '我想把“阅读是成长的钥匙”这句话转换成图片,字体颜色请用黑色。', 'relevant_apis': [{'tool_name': '图文转换API', 'api_name': '图文转换API'}], 'query_id': 7, 'claude_score': 4, 'gemini_score': 4, 'translated_query': '我想把“阅读是成长的钥匙”这句话转换成图片,字体颜色请用黑色。'} The task is as follows: 我想把“阅读是成长的钥匙”这句话转换成图片,字体颜色请用黑色。 You respond:Assistant:
- Assistant
{ "Thought": "The task requires converting the text '阅读是成长的钥匙' into an image. The specified font color is black. Based on the API information provided, the appropriate tool to use is the '图文转换API', which allows text to be converted into an image format with various customization options.", "Action": "图文转换API(text='阅读是成长的钥匙', font_color='#000000')" }