add basic REST api documentation
This commit is contained in:
parent
e7a393de54
commit
91cd54016c
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -125,3 +125,13 @@ Finally, run a model!
|
|||
```
|
||||
./ollama run llama2
|
||||
```
|
||||
|
||||
## REST API
|
||||
|
||||
### `POST /api/generate`
|
||||
|
||||
Generate text from a model.
|
||||
|
||||
```
|
||||
curl -X POST http://localhost:11434/api/generate -d '{"model": "llama2", "prompt":"Why is the sky blue?"}'
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue