Files
DocsGPT/application/core/settings.py
2023-04-29 15:46:09 +01:00

13 lines
336 B
Python

from pydantic import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
LLM_NAME: str = "openai_chat"
EMBEDDINGS_NAME: str = "openai_text-embedding-ada-002"
openai_token: str
path = Path(__file__).parent.parent.absolute()
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")