From 346b86b194087bacba38f2753fd8e608f6a14c00 Mon Sep 17 00:00:00 2001 From: Rashad Philizaire Date: Sat, 29 Jun 2024 16:02:11 -0400 Subject: [PATCH] default local models --- src/backend/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/validators.py b/src/backend/validators.py index c781b19..494fc1f 100644 --- a/src/backend/validators.py +++ b/src/backend/validators.py @@ -21,7 +21,7 @@ def validate_model(model: ChatModel): if not GROQ_API_KEY: raise ValueError("GROQ_API_KEY environment variable not found") elif is_local_model(model): - LOCAL_MODELS_ENABLED = strtobool(os.getenv("ENABLE_LOCAL_MODELS", False)) + LOCAL_MODELS_ENABLED = strtobool(os.getenv("ENABLE_LOCAL_MODELS", True)) if not LOCAL_MODELS_ENABLED: raise ValueError("Local models are not enabled") else: