mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
fix api docs
This commit is contained in:
parent
944bd13de1
commit
b9fb988112
@ -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}'
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user