Update docs

This commit is contained in:
Ying Sheng
2024-07-19 11:40:06 -07:00
parent 11c8efff73
commit 50a53887be
2 changed files with 3 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ Download an image
curl -o example_image.png -L https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true
```
Send a request
```python
import requests
@@ -139,4 +140,4 @@ print(response.json())
```
The `image_data` can be a file name, a URL, or a base64 encoded string. See also `python/sglang/srt/utils.py:load_image`.
Streaming is supported in a similar manner as [above](#streaming).
Streaming is supported in a similar manner as [above](#streaming).