from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): API_KEY: str Groq_api_key: str class Config: env_file = ".env" env_file_encoding = "utf-8" case_sensitive = True @lru_cache() def get_settings(): return Settings()