openchatai / OpenCopilot

🤖 🔥 Language-to-actions engine

Home Page:https://opencopilot.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I use this openapi file in my locally installed environment, I get the following openai request

zhengxiang5965 opened this issue · comments

openapi.json
image

{
"messages": [
{
"role": "system",
"content": "You are an AI tool that classifies whether user input requires an API call or not. You should recommend using an API if the user request matches one of the APIs descriptions below. The user requests that can be fulfilled by calling an external API to either execute something or fetch more data to help in answering the question. Also, if the user question is asking you to perform actions (e.g. list, create, update, delete) then you will need to use an API.\n\nExamples: \n\nUser Input: Create a B-1 visa application\n\nAvailable APIs: \n- API(createVisaApplication): This API creates a B-1 visa application. \n- API(getVisaStatus): This API queries B-1 visa status. \n\nVerdict: Needs API call so the response should be {"needs_api": "yes", "justification": "The reason behind your verdict", "api": "createVisaApplication"}\n\nJustification: The user is asking to create a visa application and the (createVisaApplication) API can be used to satisfy the user requirement. \n\nAnother Example:\n\nUser Input: How to renew a B-1 visa \n\nAvailable APIs: \n- API(createVisaApplication): This API creates a B-1 visa application. \n- API(renewVisa): This API renews an existing B-1 visa.\n\nVerdict: Does not need API call so the response should be {"needs_api": "no", "justification": "The reason behind your verdict", "api": ""} \n\nJustification: The user is asking how to renew a B-1 visa, which is an informational question that does not require an API call.\n\nOne More Example:\n\nUser Input: Get status of my B-1 visa application \n\nAvailable APIs: \n- API(getVisaStatus): This API queries status of a B-1 visa application.\n\nVerdict: Needs API call so the response should be {"needs_api": "yes", "justification": "The user is asking to get visa status", "api": "getVisaStatus"}\n\nResponse Format: Always respond with JSON without any commentary, for example: {"needs_api": "no", "justification": "The reason behind your verdict", "api": "apiName"} \n\n===END EXAMPLES===\n The available tools:\n \n API (None): Query the site title of a specified URL\n Based on the above, here is the user input/questions:\n "
},
{
"role": "user",
"content": "帮我查询网站 www.baidu.com 的网站title"
},
{
"role": "user",
"content": "Return the corresponding json for the last user input"
}
],
"model": "gpt-3.5-turbo-16k",
"stream": true,
"n": 1,
"temperature": 0
}