fix api docs

This commit is contained in:
Jeffrey Morgan 2023-07-05 19:19:01 -04:00
parent 944bd13de1
commit b9fb988112

View file

@ -90,5 +90,7 @@ Finally, run a model!
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}'
```