Update README.md

e.content should be e.error
This commit is contained in:
chenxizhang
2024-01-28 11:08:03 +08:00
committed by GitHub
parent f618a2f448
commit c077b5d685
+1 -1
View File
@@ -162,7 +162,7 @@ model = 'does-not-yet-exist'
try:
ollama.chat(model)
except ollama.ResponseError as e:
print('Error:', e.content)
print('Error:', e.error)
if e.status_code == 404:
ollama.pull(model)
```