supportsStreaming() && $p->isConfigured() && function_exists('curl_init'); } private static function toArray(ProviderInterface $p): array { return [ 'source' => $p->id(), 'endpoint' => $p->endpoint(), 'key' => $p->apiKey(), 'model' => $p->model(), 'streamable' => $p->supportsStreaming(), ]; } }