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