Openai The server had an error while processing your request. Sorry about that!

$parma = array(“model”=>“text-davinci-003”,
“prompt”=> “how to go delhi”,
“temperature”=> 0,
“max_tokens”=> 4000,
“top_p”=> 1,
“frequency_penalty”=> 0.5,
“presence_penalty”=> 0,
“stop”=> [“Q_R_S:”],
);

Open Ai Response in Error is coming “The server had an error while processing your request. Sorry about that!” :rage: :rage: :rage: :rage:

2 Likes

I ran this and it worked fine for me; except since I only use temp, I disabled top_p per the docs.

Configure Prompt

Completion Results

HTH