@@ -280,7 +304,9 @@ Download a model from the ollama library. Cancelled pulls are resumed from where
-`insecure`: (optional) allow insecure connections to the library. Only use this if you are pulling from your own library during development.
-`stream`: (optional) if `false` the response will be returned as a single response object, rather than a stream of objects
### Request
### Examples
#### Request
```shell
curl -X POST http://localhost:11434/api/pull -d'{
...
...
@@ -288,7 +314,7 @@ curl -X POST http://localhost:11434/api/pull -d '{
}'
```
### Response
#### Response
If `stream` is not specified, or set to `true`, a stream of JSON objects is returned:
...
...
@@ -306,7 +332,7 @@ Then there is a series of downloading responses. Until any of the download is co
{
"status":"downloading digestname",
"digest":"digestname",
"total":2142590208,
"total":2142590208,
"completed":241970
}
```
...
...
@@ -350,7 +376,9 @@ Upload a model to a model library. Requires registering for ollama.ai and adding
-`insecure`: (optional) allow insecure connections to the library. Only use this if you are pushing to your library during development.
-`stream`: (optional) if `false` the response will be returned as a single response object, rather than a stream of objects
### Request
### Examples
#### Request
```shell
curl -X POST http://localhost:11434/api/push -d'{
...
...
@@ -358,7 +386,7 @@ curl -X POST http://localhost:11434/api/push -d '{
}'
```
### Response
#### Response
If `stream` is not specified, or set to `true`, a stream of JSON objects is returned:
...
...
@@ -396,7 +424,7 @@ Finally, when the upload is complete:
If `stream` is set to `false`, then the response is a single JSON object:
```json
{"status":"success"}
{"status":"success"}
```
## Generate Embeddings
...
...
@@ -416,7 +444,9 @@ Advanced parameters:
-`options`: additional model parameters listed in the documentation for the [Modelfile](./modelfile.md#valid-parameters-and-values) such as `temperature`
### Request
### Examples
#### Request
```shell
curl -X POST http://localhost:11434/api/embeddings -d'{
...
...
@@ -425,7 +455,7 @@ curl -X POST http://localhost:11434/api/embeddings -d '{