Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4788173

Browse files
danbevmglambda
authored andcommitted
server : update json snippets in README.md [no ci] (ggml-org#11492)
This commit updates some of JSON snippets in README.md file and removes the `json` language tag from the code blocks. The motivation for this changes is that if there is invalid json in a code snippet these are highlighted in red which can make it somewhat difficult to read and can be a little distracting.
1 parent 413be4b commit 4788173

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ These words will not be included in the completion, so make sure to add them to
460460
- Note: In streaming mode (`stream`), only `content`, `tokens` and `stop` will be returned until end of completion. Responses are sent using the [Server-sent events](https://html.spec.whatwg.org/multipage/server-sent-events.html) standard. Note: the browser's `EventSource` interface cannot be used due to its lack of `POST` request support.
461461

462462
- `completion_probabilities`: An array of token probabilities for each completion. The array's length is `n_predict`. Each item in the array has a nested array `top_logprobs`. It contains at **maximum** `n_probs` elements:
463-
```json
463+
```
464464
{
465465
"content": "<the generated completion text>",
466466
"tokens": [ generated token ids if requested ],
@@ -561,7 +561,7 @@ If `with_pieces` is `true`:
561561
```
562562

563563
With input 'á' (utf8 hex: C3 A1) on tinyllama/stories260k
564-
```json
564+
```
565565
{
566566
"tokens": [
567567
{"id": 198, "piece": [195]}, // hex C3
@@ -776,7 +776,7 @@ Same as the `/v1/embeddings` endpoint.
776776

777777
**Response format**
778778

779-
```json
779+
```
780780
[
781781
{
782782
"index": 0,

0 commit comments

Comments
 (0)