Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
a3297fed
"src/vscode:/vscode.git/clone" did not exist on "0b7daa6de99b759f4c6c0b723716b70e4107a2c8"
Commit
a3297fed
authored
Jul 23, 2023
by
Jeffrey Morgan
Browse files
add `/api/create` docs to readme
parent
88c55199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
README.md
README.md
+8
-0
No files found.
README.md
View file @
a3297fed
...
@@ -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"}'
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment