From 6c7143dd51a6f13884ea73d47821eb51b496aed7 Mon Sep 17 00:00:00 2001 From: jad2121 Date: Tue, 5 Mar 2024 17:51:01 -0500 Subject: [PATCH] added yet another error message --- installer/client/cli/utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index cc7e491..4c5969d 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -188,8 +188,12 @@ class Standalone: ) print(response.choices[0].message.content) except Exception as e: - print(f"Error: {e}") - print(e) + if "All connection attempts failed" in str(e): + print( + "Error: cannot connect to llama2. If you have not already, please visit https://ollama.com for installation instructions") + else: + print(f"Error: {e}") + print(e) if self.args.copy: pyperclip.copy(response.choices[0].message.content) if self.args.output: