Skip to content

Commit

Permalink
default local models
Browse files Browse the repository at this point in the history
  • Loading branch information
rashadphz committed Jun 29, 2024
1 parent b05ebda commit 346b86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 346b86b

Please sign in to comment.