mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
add basic REST api documentation
This commit is contained in:
parent
e7a393de54
commit
91cd54016c
10
README.md
10
README.md
@ -125,3 +125,13 @@ Finally, run a model!
|
|||||||
```
|
```
|
||||||
./ollama run llama2
|
./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…
x
Reference in New Issue
Block a user