From a3297fed41431008c43a3fdf5bba0478bba1d131 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sun, 23 Jul 2023 18:01:05 -0400 Subject: [PATCH] add `/api/create` docs to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cf5c2f83..7a2618c8 100644 --- a/README.md +++ b/README.md @@ -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?"}' ``` + +### `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"}' +```