apiKey(), 'anthropic-version: 2023-06-01', ]; } public function streamBody(string $prompt, float $temperature): array { return [ 'model' => $this->model(), 'max_tokens' => self::MAX_TOKENS, 'messages' => [['role' => 'user', 'content' => $prompt]], 'temperature' => $temperature, 'stream' => true, ]; } }