Apply suggestions from code review
Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
This commit is contained in:
parent
61befcba7b
commit
ccd85e0a6b
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ To get started right away, run the following command, making sure to use the cor
|
||||||
server.exe -m models\7B\ggml-model.bin -c 2048
|
server.exe -m models\7B\ggml-model.bin -c 2048
|
||||||
```
|
```
|
||||||
|
|
||||||
That will start a server that by default listens on `127.0.0.1:8080`.
|
The above command will start a server that by default listens on `127.0.0.1:8080`.
|
||||||
You can consume the endpoints with Postman or NodeJS with axios library.
|
You can consume the endpoints with Postman or NodeJS with axios library.
|
||||||
|
|
||||||
## Testing with CURL
|
## Testing with CURL
|
||||||
|
|
|
@ -25,7 +25,7 @@ async function ChatCompletion(question) {
|
||||||
top_p: 0.9,
|
top_p: 0.9,
|
||||||
n_keep: 29,
|
n_keep: 29,
|
||||||
n_predict: 256,
|
n_predict: 256,
|
||||||
stop: ["\n### Human:"], // when detect this, stop completion
|
stop: ["\n### Human:"], // stop completion after generating this
|
||||||
stream: true,
|
stream: true,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue