<?php
/**
 * AI Providers Module Loader
 * Load tất cả các file cần thiết cho AI Provider system
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Thoát nếu truy cập trực tiếp

// Load API Keys Manager first (providers need it)
require_once __DIR__ . '/aiautotool_ai_provider_api_keys.php';

// Load Manager and Helper
require_once __DIR__ . '/aiautotool_ai_provider_manager.php';
require_once __DIR__ . '/aiautotool_ai_helper.php';
require_once __DIR__ . '/aiautotool_ai_agent.php';
require_once __DIR__ . '/aiautotool_ai_provider_settings.php';

// Load unified Settings UI (includes API keys management)
require_once __DIR__ . '/aiautotool_ai_provider_settings_ui.php';

// Initialize Settings UI if not already done
if (class_exists('AIAutotool_AI_Provider_Settings_UI') && !isset($GLOBALS['aiautotool_ai_provider_settings_ui'])) {
    $GLOBALS['aiautotool_ai_provider_settings_ui'] = new AIAutotool_AI_Provider_Settings_UI();
}

