mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
added yet another error message
This commit is contained in:
parent
2b6cb21e35
commit
6c7143dd51
@ -188,8 +188,12 @@ class Standalone:
|
|||||||
)
|
)
|
||||||
print(response.choices[0].message.content)
|
print(response.choices[0].message.content)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error: {e}")
|
if "All connection attempts failed" in str(e):
|
||||||
print(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:
|
if self.args.copy:
|
||||||
pyperclip.copy(response.choices[0].message.content)
|
pyperclip.copy(response.choices[0].message.content)
|
||||||
if self.args.output:
|
if self.args.output:
|
||||||
|
Loading…
Reference in New Issue
Block a user