' . esc_html__('Settings saved successfully!', 'ai-content-classifier') . '

'; } // Test API connection $api_key = get_option('aicg_api_key'); $api_status = 'not-configured'; if (!empty($api_key)) { $client = new AICG_OpenAI_Client(); if ($client->validate_api_key($api_key)) { $api_status = 'connected'; } else { $api_status = 'error'; } } ?>

  1. platform.openai.com