From 43622e7ab145c826b65786217195458c77cc35ee Mon Sep 17 00:00:00 2001 From: Serj Date: Sat, 29 Apr 2023 15:40:55 +0100 Subject: [PATCH] Added settings file --- application/core/__init__.py | 0 application/core/settings.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 application/core/__init__.py create mode 100644 application/core/settings.py diff --git a/application/core/__init__.py b/application/core/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/application/core/settings.py b/application/core/settings.py new file mode 100644 index 00000000..416b903d --- /dev/null +++ b/application/core/settings.py @@ -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")