Skip to content

Commit

Permalink
[lmi][docs] fix token format in api schema docs (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk authored Jun 4, 2024
1 parent c6ff51b commit 7f54a57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions serving/docs/lmi/user_guides/lmi_input_output_schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ The final "line" in the response will also contain the additional fields `genera

Example response:
```
{"token": {"id": [304], "text": "Deep ", "log_prob": -0.052432529628276825}}
{"token": {"id": [11157], "text": " Learning", "log_prob": -1.2865009307861328}}
{"token": {"id": [278], "text": " is", "log_prob": -0.007458459585905075}}
{"token": {"id": 304, "text": "Deep ", "log_prob": -0.052432529628276825}}
{"token": {"id": 11157, "text": " Learning", "log_prob": -1.2865009307861328}}
{"token": {"id": 278, "text": " is", "log_prob": -0.007458459585905075}}
... more tokens until the last one
{
"token": {"id": [5972], "text": " field.", "log_prob": -0.6950479745864868},
"token": {"id": 5972, "text": " field.", "log_prob": -0.6950479745864868},
"generated_text": "Deep Learning is a really cool field.",
"details": {"finish_reason": "length", "generated_tokens": 100, "inputs": "What is Deep Learning?"}
}
Expand Down Expand Up @@ -327,7 +327,7 @@ Example:
```
{
"token": {
"id": [763],
"id": 763,
"text": " In",
"log_prob": -3.977081060409546
}
Expand Down

0 comments on commit 7f54a57

Please sign in to comment.