[llama-cpp] fix json ouptut

This commit is contained in:
Jaewook Lee
2024-07-11 10:04:10 +09:00
parent 7257ab8968
commit a41a4630c1

View File

@@ -32,7 +32,7 @@ $ curl --request POST \
``` ```
```json ```json
{"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 ## Python Client
@@ -78,9 +78,6 @@ response = requests.post(
} }
).json() ).json()
# print(response['content'])
df = pl.DataFrame(response['completion_probabilities'][0]['probs']) df = pl.DataFrame(response['completion_probabilities'][0]['probs'])
print(df) print(df)
``` ```