mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
mtmd: Explain base64 inputs in the API docs
This commit is contained in:
parent
bd05fb899e
commit
331eab81f7
|
|
@ -97,6 +97,8 @@ curl http://127.0.0.1:5000/v1/chat/completions \
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For base64-encoded images, just replace the inner "url" value with the base64 string, formatted as `data:image/FORMAT;base64,BASE64_STRING` where FORMAT is the image type (image/png, image/jpeg, image/gif, etc.) and BASE64_STRING is your encoded image.
|
||||||
|
|
||||||
##### With /v1/completions
|
##### With /v1/completions
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
@ -129,6 +131,8 @@ curl http://127.0.0.1:5000/v1/completions \
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For base64-encoded images, just replace the inner "url" values with the base64 strings, formatted as `data:image/FORMAT;base64,BASE64_STRING` where FORMAT is the image type (image/png, image/jpeg, image/gif, etc.) and BASE64_STRING is your encoded image.
|
||||||
|
|
||||||
#### SSE streaming
|
#### SSE streaming
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue