What do I have to do to make use of GPT-4 ? This is what I currently have :
use GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.openai.com', 'timeout' => 10.0,]);
$response = $client->post('/v1/engines/text-davinci-003/completions', [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer ' . $openai_api_key,
],
'json' => [
'prompt' => $prompt,
'max_tokens' => 2048,
'n' => 1,
'stop' => null,
'temperature' => 1,
],
]);