From 955cbeb9742d07aa29ed0d082ba3e8fc13dba32a Mon Sep 17 00:00:00 2001 From: milenasrb Date: Tue, 1 Oct 2024 17:05:12 +0200 Subject: [PATCH] Update model config --- server/intelligence-service/app/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/intelligence-service/app/config.py b/server/intelligence-service/app/config.py index 16800afb..aec01a99 100644 --- a/server/intelligence-service/app/config.py +++ b/server/intelligence-service/app/config.py @@ -1,7 +1,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): - model_config = SettingsConfigDict(validate_key=False) + model_config = SettingsConfigDict(env_file=".env") OPENAI_API_KEY: str = "" @@ -17,4 +17,4 @@ def is_openai_available(self): def is_azure_openai_available(self): return bool(self.AZURE_OPENAI_API_KEY) and bool(self.AZURE_OPENAI_ENDPOINT) and bool(self.AZURE_OPENAI_API_VERSION) -settings = Settings(_env_file=".env") +settings = Settings()