Added settings usage to the worker

This commit is contained in:
Serj
2023-04-29 15:56:32 +01:00
parent 47e5d5684a
commit 2d92e95c8a
2 changed files with 16 additions and 22 deletions

View File

@@ -5,11 +5,12 @@ from pathlib import Path
class Settings(BaseSettings):
LLM_NAME: str = "openai_chat"
EMBEDDINGS_NAME: str = "openai_text-embedding-ada-002"
openai_token: str
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