getServiceName(); if ($service === 'openai') { $key = config('services.openai.key'); $endpoint = config('services.openai.endpoint'); return new OpenAiVectorQueryService($endpoint, $key, $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()); } }