mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +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
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
```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\")",
|
||||
"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…
Add table
Add a link
Reference in a new issue