mirror of
https://github.com/ollama/ollama-python.git
synced 2026-08-02 11:27:46 +00:00
Use client variable name for custom client in README.md
This commit is contained in:
@@ -116,8 +116,8 @@ A custom client can be created with the following fields:
|
||||
|
||||
```python
|
||||
from ollama import Client
|
||||
ollama = Client(host='http://localhost:11434')
|
||||
response = ollama.chat(model='llama2', messages=[
|
||||
client = Client(host='http://localhost:11434')
|
||||
response = client.chat(model='llama2', messages=[
|
||||
{
|
||||
'role': 'user',
|
||||
'content': 'Why is the sky blue?',
|
||||
|
||||
Reference in New Issue
Block a user