From c077b5d685d4dbce536cff10c72aa3a75ec9c00f Mon Sep 17 00:00:00 2001 From: chenxizhang Date: Sun, 28 Jan 2024 11:08:03 +0800 Subject: [PATCH] Update README.md e.content should be e.error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd227b2..44e4058 100644 --- a/README.md +++ b/README.md @@ -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) ```