From 19dddd9ffd2979ea6a8bb64aba3cd26cb4693d58 Mon Sep 17 00:00:00 2001 From: Jonathan Dunn Date: Wed, 6 Mar 2024 10:39:45 -0500 Subject: [PATCH] added an error message --- installer/client/cli/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index 5481eb6..d398a69 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -562,6 +562,11 @@ class Setup: model = model.strip() if model: # Write or update the DEFAULT_MODEL in env_file + allModels = self.claudeList + self.fullOllamaList + self.gptlist + if model not in allModels: + print( + f"Error: {model} is not a valid model. Please run fabric --listmodels to see the available models.") + sys.exit() if os.path.exists(self.env_file): with open(self.env_file, "r") as f: lines = f.readlines()