File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ Using [curl](https://curl.se/). On Windows `curl.exe` should be available in the
66
66
``` sh
67
67
curl --request POST \
68
68
--url http://localhost:8080/completion \
69
+ --header " Content-Type: application/json" \
69
70
--data ' {"prompt": "Building a website can be done in 10 simple steps:","n_predict": 128}'
70
71
```
71
72
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ tokenize() {
32
32
--silent \
33
33
--request POST \
34
34
--url " ${API_URL} /tokenize" \
35
+ --header " Content-Type: application/json" \
35
36
--data-raw " $( jq -ns --arg content " $1 " ' {content:$content}' ) " \
36
37
| jq ' .tokens[]'
37
38
}
@@ -64,6 +65,7 @@ chat_completion() {
64
65
--no-buffer \
65
66
--request POST \
66
67
--url " ${API_URL} /completion" \
68
+ --header " Content-Type: application/json" \
67
69
--data-raw " ${DATA} " )
68
70
69
71
printf " \n"
You can’t perform that action at this time.
0 commit comments