Skip to content

Commit

Permalink
Update generate_rest.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Gavrish Prabhu <[email protected]>
  • Loading branch information
gavrissh authored Jan 17, 2024
1 parent 24d9129 commit 642f018
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions specification/protocol/generate_rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ info:
version: 1.0.0
components:
schemas:
Details:
type: object
additionalProperties: {}
properties:
finish_reason:
type: string
logprobs:
$ref: '#/components/schemas/Logprobs'
GenerateErrorResponse:
type: object
required:
Expand Down Expand Up @@ -39,6 +47,8 @@ components:
items:
type: string
description: Sequences where the API will stop generating further tokens.
logprob:
type: boolean
GenerateRequest:
type: object
required:
Expand All @@ -49,8 +59,6 @@ components:
parameters:
allOf:
- $ref: '#/components/schemas/GenerateParameters'
logprob:
type: boolean
GenerateResponse:
type: object
required:
Expand All @@ -63,8 +71,8 @@ components:
type: string
model_version:
type: string
logprobs:
$ref: '#/components/schemas/Logprobs'
details:
$ref: '#/components/schemas/Details'
GenerateStreamResponse:
type: object
required:
Expand All @@ -77,14 +85,20 @@ components:
type: string
model_version:
type: string
finish_reason:
type: string
logprobs:
$ref: '#/components/schemas/Logprobs'
details:
$ref: '#/components/schemas/StreamDetails'
Logprobs:
type: array
items:
$ref: '#/components/schemas/Token'
StreamDetails:
type: object
additionalProperties: {}
properties:
finish_reason:
type: string
token:
$ref: '#/components/schemas/Token'
Token:
type: object
required:
Expand Down

0 comments on commit 642f018

Please sign in to comment.