api-chatbot / app /core /config.py
OnlyBiggg
first commit
d73e455
raw
history blame contribute delete
454 Bytes
import os
from dotenv import load_dotenv
load_dotenv() # Load biến môi trường từ file .env
class Settings:
API_BASE_URL = os.getenv("API_BASE_URL") # API gốc (backend dev)
PROJECT_ID = os.getenv("PROJECT_ID")
LOCATION = os.getenv("LOCATION")
AGENT_ID = os.getenv("AGENT_ID")
LANGUAGE_CODE = os.getenv("LANGUAGE_CODE")
GOOGLE_APPLICATION_CREDENTIALS=os.getenv("GOOGLE_APPLICATION_CREDENTIALS")
settings = Settings()