[llama-cpp] fix json ouptut
This commit is contained in:
@@ -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)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user