mirror of
https://github.com/ollama/ollama-python.git
synced 2026-02-04 02:54:08 -06:00
update readme
This commit is contained in:
parent
e8a66b8de1
commit
d5b1cc60fa
@ -25,7 +25,7 @@ for part in ollama.chat(model='llama2', messages=[message], stream=True):
|
||||
```
|
||||
|
||||
|
||||
### Using the Synchronous Client
|
||||
## Using the Synchronous Client
|
||||
|
||||
```python
|
||||
from ollama import Client
|
||||
@ -42,7 +42,7 @@ for part in Client().chat(model='llama2', messages=[message], stream=True):
|
||||
print(part['message']['content'], end='', flush=True)
|
||||
```
|
||||
|
||||
### Using the Asynchronous Client
|
||||
## Using the Asynchronous Client
|
||||
|
||||
```python
|
||||
import asyncio
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user