I am trying to make an API call to GPT-3 but I am getting an error (Bad request 400). Here is my code:
url = "https://api.openai.com/v1/engines/gpt-3/jobs"
headers = {
"Content-Type": "application/json",
"Authorization": "sk-apikey"
}
data = {
"model": "text-davinci-002",
"prompt": "Correct this to standard English : Who are you",
"max_tokens": 60
}
response = requests.post(url, headers=headers, data=json.dumps(data))