Added settings usage to the worker

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

No files matched your search

+2 -1
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