mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
20 lines
491 B
Python
20 lines
491 B
Python
from pydantic import BaseSettings
|
|
from pathlib import Path
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
LLM_NAME: str = "openai_chat"
|
|
EMBEDDINGS_NAME: str = "openai_text-embedding-ada-002"
|
|
CELERY_BROKER_URL: str
|
|
CELERY_RESULT_BACKEND: str
|
|
MONGO_URI: str
|
|
|
|
API_URL: str = "http://localhost:5001"
|
|
|
|
API_KEY: str = None
|
|
EMBEDDINGS_KEY: str = None
|
|
|
|
|
|
path = Path(__file__).parent.parent.absolute()
|
|
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")
|