mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 12:14:00 +00:00
Added settings file
This commit is contained in:
1 parent
5cfc185ba5
commit
43622e7ab1
2 files changed
+10
No files matched your search
Whitespace-only changes.
@@ -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")
|
||||
Reference in new issue
Block a user