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
OpenDAS
ollama
Commits
71d71d09
Commit
71d71d09
authored
Nov 15, 2023
by
Michael Yang
Browse files
update docs
parent
1901044b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
docs/api.md
docs/api.md
+5
-6
No files found.
docs/api.md
View file @
71d71d09
...
...
@@ -4,7 +4,6 @@
-
[
Generate a completion
](
#generate-a-completion
)
-
[
Create a Model
](
#create-a-model
)
-
[
Create a Blob
](
#create-a-blob
)
-
[
List Local Models
](
#list-local-models
)
-
[
Show Model Information
](
#show-model-information
)
-
[
Copy a Model
](
#copy-a-model
)
...
...
@@ -298,7 +297,7 @@ Create a model from a [`Modelfile`](./modelfile.md). It is recommended to set `m
### Parameters
-
`name`
: name of the model to create
-
`path`
: path to the Modelfile
-
`path`
: path to the Modelfile
(deprecated: please use modelfile instead)
-
`modelfile`
: contents of the Modelfile
-
`stream`
: (optional) if
`false`
the response will be returned as a single response object, rather than a stream of objects
...
...
@@ -324,7 +323,7 @@ A stream of JSON objects. When finished, `status` is `success`.
}
```
## Create a Blob
##
#
Create a Blob
```
shell
POST /api/blobs/:digest
...
...
@@ -332,17 +331,17 @@ POST /api/blobs/:digest
Create a blob from a file. Returns the server file path.
### Query Parameters
###
#
Query Parameters
-
`digest`
: the expected SHA256 digest of the file
### Examples
###
#
Examples
```
shell
curl
-X
POST http://localhost:11434/api/blobs/sha256:29fdb92e57cf0827ded04ae6461b5931d01fa595843f55d36f5b275a52087dd2
-d
@llama2-13b-q4_0.gguf
```
### Response
###
#
Response
```
json
{
...
...
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