transporter = $transporter; } public function create(array $options, string $model) { $endpoint = "models/{$model}:generateMessage"; $response = $this->transporter->post("$endpoint", $options); return ChatResponse::fromJson($response); } }