mirror of
https://github.com/ollama/ollama-python.git
synced 2026-05-01 11:48:17 +08: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
|
```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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user