<?php
/**
 * AR Display AI - Service
 */

if (!defined('ABSPATH')) {
    exit;
}

require_once __DIR__ . '/class-ardisplay-ai-provider-interface.php';
require_once __DIR__ . '/class-ardisplay-ai-provider-sf3d.php';
require_once __DIR__ . '/class-ardisplay-ai-provider-triposr.php';

if (!class_exists('Ardisplay_Ai_Service')) {
    class Ardisplay_Ai_Service {
        private Ardisplay_Ai_Provider_Interface $provider;

        public function __construct()
        {
            // Provider selection is now determined by the proxy. Always use the proxy client.
            $this->provider = new Ardisplay_Ai_Provider_SF3D('https://ardisplay.ai', null);
        }

        public function provider(): Ardisplay_Ai_Provider_Interface
        {
            return $this->provider;
        }
    }
}


