2023-04-29 14:40:55 +00:00
|
|
|
from pydantic import BaseSettings
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
2023-04-29 14:44:47 +00:00
|
|
|
LLM_NAME: str = "openai_chat"
|
2023-04-29 14:46:09 +00:00
|
|
|
EMBEDDINGS_NAME: str = "openai_text-embedding-ada-002"
|
2023-04-29 14:50:02 +00:00
|
|
|
CELERY_BROKER_URL: str
|
|
|
|
CELERY_RESULT_BACKEND: str
|
|
|
|
MONGO_URI: str
|
|
|
|
|
2023-04-29 14:56:32 +00:00
|
|
|
API_URL: str = "http://localhost:5001"
|
|
|
|
|
2023-04-29 14:50:02 +00:00
|
|
|
API_KEY: str = None
|
|
|
|
EMBEDDINGS_KEY: str = None
|
2023-04-29 14:40:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
path = Path(__file__).parent.parent.absolute()
|
|
|
|
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")
|