Commit e184c1d0 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

Link to `api.md` in `README.md`

parent 371d4e5d
...@@ -134,20 +134,15 @@ Finally, run a model! ...@@ -134,20 +134,15 @@ Finally, run a model!
## REST API ## REST API
### `POST /api/generate` > See the [API documentation](./docs/api.md) for all endpoints.
Generate text from a model. Ollama has an API for running and managing models. For example to generate text from a model:
``` ```
curl -X POST http://localhost:11434/api/generate -d '{"model": "llama2", "prompt":"Why is the sky blue?"}' curl -X POST http://localhost:11434/api/generate -d '{
``` "model": "llama2",
"prompt":"Why is the sky blue?"
### `POST /api/create` }'
Create a model from a `Modelfile`.
```
curl -X POST http://localhost:11434/api/create -d '{"name": "my-model", "path": "/path/to/modelfile"}'
``` ```
## Tools using Ollama ## Tools using Ollama
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment