Update llama-cpp-logits/README.md

This commit is contained in:
2024-09-01 03:18:35 -04:00
parent 016e225c74
commit 281816b62f

View File

@@ -29,14 +29,15 @@ volumes:
## cURL test
```bash
$ curl --request POST \
sudo apt-get install -y curl jq
curl --request POST \
--url http://localhost:8080/completion \
--header "Content-Type: application/json" \
--data '{"prompt": "Building a website can be done in 10 simple steps:","n_predict": 128}'
```
--data '{"prompt": "Building a website can be done in 10 simple steps:","n_predict": 128}' \
| jq
```javascript
{"content":"\n\n**1. Define Your Purpose:**\n\n* What do you want to achieve with your website?", ... }
# {"content":"\n\n**1. Define Your Purpose:**\n\n* What do you want to achieve with your website?", ... }
```
## Python Client