update simpler code samples

Signed-off-by: Matt Williams <m@technovangelist.com>
This commit is contained in:
Matt Williams 2023-08-07 07:40:38 -07:00
parent 8a45359ec6
commit 4904cd8bcd

View file

@ -84,9 +84,8 @@ The final response in the stream also includes the context and what is usually s
#### Request #### Request
```shell ```shell
curl --location --request POST 'http://localhost:11434/api/generate' \ curl -X POST 'http://localhost:11434/api/generate' -d \
--header 'Content-Type: text/plain' \ '{
--data-raw '{
"model": "orca", "model": "orca",
"prompt": "why is the sky blue" "prompt": "why is the sky blue"
}' }'
@ -197,7 +196,7 @@ The response is a JSON object with a single key/value pair for models. For examp
#### Request #### Request
```shell ```shell
curl --location --request GET 'http://localhost:11434/api/tags' curl 'http://localhost:11434/api/tags'
``` ```
#### Response #### Response
@ -262,9 +261,8 @@ There is no response other than a 200 status code.
#### Request #### Request
```shell ```shell
curl --location --request POST 'http://localhost:11434/api/copy' \ curl -X POST 'http://localhost:11434/api/copy' -d \
--header 'Content-Type: text/plain' \ '{
--data-raw '{
"source": "MyCoolModel", "source": "MyCoolModel",
"destination": "ADifferentModel" "destination": "ADifferentModel"
}' }'
@ -301,9 +299,8 @@ No response is returned other than a 200 status code.
#### Request #### Request
```shell ```shell
curl --location --request DELETE 'http://localhost:11434/api/delete' \ curl -X DELETE 'http://localhost:11434/api/delete' -d \
--header 'Content-Type: text/plain' \ '{
--data-raw '{
"name": "adifferentModel" "name": "adifferentModel"
}' }'
``` ```
@ -347,9 +344,8 @@ The response is a stream of JSON objects with the following format:
#### Request #### Request
```shell ```shell
curl --location --request POST 'http://localhost:11434/api/pull' \ curl -X POST 'http://localhost:11434/api/pull' -d \
--header 'Content-Type: text/plain' \ '{
--data-raw '{
"name": "orca:3b-q4_1" "name": "orca:3b-q4_1"
}' }'
``` ```