import logging

from pydantic import BaseSettings
from dotenv import load_dotenv

log = logging.getLogger(__name__)
if not load_dotenv():
    log.error(".env file not found.")

class ApplicationSettings(BaseSettings):
    """Define application configuration model.

    Constructor will attempt to determine the values of any fields not passed
    as keyword arguments by reading from the environment. Default values will
    still be used if the matching environment variable is not set.
    """

    PROJECT_NAME: str = "HOTEL CHATBOT APIS"
    DOCS_URL: str = "/"
    DEBUG: bool = True
    
    PRODUCTION: bool = True
    OPENAI_KEY: str = ''
    
    LS_API_URL: str = "https://www.plazabeachresorts.com/ls-api/"

    HOTEL_CURRENT_VERSION: str = "9"
    SUB_HOTEL_ID: str = "124"
    class Config:
        case_sensitive = True


settings = ApplicationSettings()
