mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-11 04:52:52 +00:00
Update gpt-vision.md
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
parent
93f51d80d4
commit
636d487dc8
@ -25,7 +25,7 @@ curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/jso
|
|||||||
Grammars and function tools can be used as well in conjunction with vision APIs:
|
Grammars and function tools can be used as well in conjunction with vision APIs:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl http://10.1.0.36:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
|
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
|
||||||
"model": "llava", "grammar": "root ::= (\"yes\" | \"no\")",
|
"model": "llava", "grammar": "root ::= (\"yes\" | \"no\")",
|
||||||
"messages": [{"role": "user", "content": [{"type":"text", "text": "Is there some grass in the image?"}, {"type": "image_url", "image_url": {"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" }}], "temperature": 0.9}]}'
|
"messages": [{"role": "user", "content": [{"type":"text", "text": "Is there some grass in the image?"}, {"type": "image_url", "image_url": {"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" }}], "temperature": 0.9}]}'
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user