from ollama import Client
client = Client(host='http://localhost:11434')
But I don't quite get how the example in "Usage" can work: import ollama
response = ollama.chat(model='llama2', messages=[
{
'role': 'user',
'content': 'Why is the sky blue?',
},
])
print(response['message']['content'])
Since there is no parameter for host and/or port.