update readme

This commit is contained in:
Michael Yang 2023-12-22 11:50:21 -08:00
parent e8a66b8de1
commit d5b1cc60fa

View File

@ -25,7 +25,7 @@ for part in ollama.chat(model='llama2', messages=[message], stream=True):
``` ```
### Using the Synchronous Client ## Using the Synchronous Client
```python ```python
from ollama import Client 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) print(part['message']['content'], end='', flush=True)
``` ```
### Using the Asynchronous Client ## Using the Asynchronous Client
```python ```python
import asyncio import asyncio