update api documentation
This commit is contained in:
parent
fdb93ef2aa
commit
9f528c12d7
1 changed files with 10 additions and 4 deletions
14
README.md
14
README.md
|
@ -92,12 +92,18 @@ Finally, run a model!
|
|||
|
||||
## API Reference
|
||||
|
||||
### `POST /completion`
|
||||
### `POST /api/pull`
|
||||
|
||||
Download a model
|
||||
|
||||
```
|
||||
curl -X POST http://localhost:11343/api/pull -d '{"model": "orca"}'
|
||||
```
|
||||
|
||||
### `POST /api/generate`
|
||||
|
||||
Complete a prompt
|
||||
|
||||
```
|
||||
curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
|
||||
-X POST \
|
||||
-d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
|
||||
curl -X POST http://localhost:11434/api/generate -d '{"model": "orca", "prompt": "hello!", "stream": true}'
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue