forked from phoenix/litellm-mirror
Update README.md
This commit is contained in:
parent
1c1ee94481
commit
6e6ec8c65f
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ Stable version
|
||||||
pip install litellm==0.1.1
|
pip install litellm==0.1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
## streaming queries
|
## Streaming Queries
|
||||||
liteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.
|
liteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.
|
||||||
```
|
```python
|
||||||
response = completion(model="gpt-3.5-turbo", messages=messages, stream=True)
|
response = completion(model="gpt-3.5-turbo", messages=messages, stream=True)
|
||||||
for chunk in response:
|
for chunk in response:
|
||||||
print(chunk['choices'][0]['delta'])
|
print(chunk['choices'][0]['delta'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue