mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
fix api docs
This commit is contained in:
@@ -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}'
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user