fix api docs
This commit is contained in:
parent
944bd13de1
commit
b9fb988112
1 changed files with 3 additions and 1 deletions
|
@ -90,5 +90,7 @@ Finally, run a model!
|
||||||
Complete a prompt
|
Complete a prompt
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -X POST http://localhost:8080/completion -H 'Content-Type: application/json' -d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
|
curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
|
||||||
|
-X POST \
|
||||||
|
-d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue