From 281816b62fe41523fa6891b63c285411e4a12663 Mon Sep 17 00:00:00 2001 From: jay817 Date: Sun, 1 Sep 2024 03:18:35 -0400 Subject: [PATCH] Update llama-cpp-logits/README.md --- llama-cpp-logits/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/llama-cpp-logits/README.md b/llama-cpp-logits/README.md index ecd2369..bd63e88 100644 --- a/llama-cpp-logits/README.md +++ b/llama-cpp-logits/README.md @@ -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