Commit b9fb9881 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

fix api docs

parent 944bd13d
......@@ -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}'
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment