"""AI Provider Django App Configuration."""

from django.apps import AppConfig


class AIProviderConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "apps.ai_provider"
    verbose_name = "AI Provider Management"

    def ready(self):
        """Import admin module when app is ready"""
        from .application.config_summary_service import (
            configure_ai_provider_config_summary_repository,
        )
        from .infrastructure.config_summary_repository import (
            DjangoAIProviderConfigSummaryRepository,
        )

        configure_ai_provider_config_summary_repository(
            DjangoAIProviderConfigSummaryRepository()
        )

        import apps.ai_provider.interface.admin  # noqa: F401
