'openai/gpt-3.5-turbo', 'messages' => [ ['role' => 'user', 'content' => $message] ] ]; $options = [ 'http' => [ 'header' => "Content-Type: application/json\r\nAuthorization: Bearer {$apiKey}", 'method' => 'POST', 'content' => json_encode($data), ], ]; $response = file_get_contents($url, false, stream_context_create($options)); $json = json_decode($response, true); $output = $json['choices'][0]['message']['content'] ?? ''; require_once __DIR__ . '/assets/Parsedown.php'; $parsedown = new Parsedown(); echo $parsedown->text($output); exit; ?>