mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-17 21:26:26 +00:00
Added settings file
This commit is contained in:
parent
5cfc185ba5
commit
43622e7ab1
0
application/core/__init__.py
Normal file
0
application/core/__init__.py
Normal file
10
application/core/settings.py
Normal file
10
application/core/settings.py
Normal 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")
|
Loading…
Reference in New Issue
Block a user