Added settings file

This commit is contained in:
Serj 2023-04-29 15:40:55 +01:00
parent 5cfc185ba5
commit 43622e7ab1
2 changed files with 10 additions and 0 deletions

View File

View File

@ -0,0 +1,10 @@
from pydantic import BaseSettings
from pathlib import Path
class Settings(BaseSettings):
openai_token: str
path = Path(__file__).parent.parent.absolute()
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")