DocsGPT/application/core/settings.py

12 lines
277 B
Python
Raw Normal View History

2023-04-29 14:40:55 +00:00
from pydantic import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
2023-04-29 14:44:47 +00:00
LLM_NAME: str = "openai_chat"
2023-04-29 14:40:55 +00:00
openai_token: str
path = Path(__file__).parent.parent.absolute()
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")