shizzledizzleeee
Regular Member
- Jan 3, 2013
- 407
- 83
I am constantly getting an error when requesting data from the Open API GPT using Java, even after I create a new API.
String openaiApiKey = "My API";
String model = "text-davinci-002";
String prompt = "Write an article based on the following article: " + article;
String completionsUrl = "https://api.openai.com/v1/engines/" + model + "/completions";
String openaiApiKey = "My API";
String model = "text-davinci-002";
String prompt = "Write an article based on the following article: " + article;
String completionsUrl = "https://api.openai.com/v1/engines/" + model + "/completions";
Code:
Error: java.io.IOException: Server returned HTTP response code: 429 for URL: https://api.openai.com/v1/engines/text-davinci-002/completions
BUILD SUCCESSFUL (total time: 1 minute 43 seconds)
df