"src/vscode:/vscode.git/clone" did not exist on "0b7daa6de99b759f4c6c0b723716b70e4107a2c8"
Commit a3297fed authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

add `/api/create` docs to readme

parent 88c55199
...@@ -135,3 +135,11 @@ Generate text from a model. ...@@ -135,3 +135,11 @@ 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"}'
```
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