getServiceName(); if ($service === 'openai') { return new OpenAiVectorQueryService(config('services.openai'), $this->http); } throw new \Exception("No '{$service}' LLM service found"); } protected static function getServiceName(): string { return strtolower(config('services.llm')); } public static function isEnabled(): bool { return !empty(static::getServiceName()); } }