mirror of
https://github.com/ollama/ollama-python.git
synced 2026-08-12 16:07:47 +00:00
client: improve error messaging on connection failure (#398)
*iImprove error messaging on connection failure
This commit is contained in:
+4
-4
@@ -2,9 +2,9 @@ from ollama import Client
|
||||
|
||||
client = Client()
|
||||
response = client.create(
|
||||
model='my-assistant',
|
||||
from_='llama3.2',
|
||||
system="You are mario from Super Mario Bros.",
|
||||
stream=False
|
||||
model='my-assistant',
|
||||
from_='llama3.2',
|
||||
system='You are mario from Super Mario Bros.',
|
||||
stream=False,
|
||||
)
|
||||
print(response.status)
|
||||
|
||||
Reference in New Issue
Block a user