mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-09 19:10:53 +00:00
12 lines
277 B
Python
12 lines
277 B
Python
from pydantic import BaseSettings
|
|
from pathlib import Path
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
LLM_NAME: str = "openai_chat"
|
|
openai_token: str
|
|
|
|
|
|
path = Path(__file__).parent.parent.absolute()
|
|
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")
|