OPEN AI Request/Response problem

shizzledizzleeee

Regular Member
Joined
Jan 3, 2013
Messages
407
Reaction score
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";


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
 
Error 429 is too many requests, maybe one of your loops are wrong. can you post your entire code?
 
Back
Top