forked from phoenix/litellm-mirror
(docs) openapi.json fix ChatCompletion Response output
This commit is contained in:
parent
474825210a
commit
ba106a776b
1 changed files with 57 additions and 49 deletions
|
@ -178,7 +178,7 @@
|
|||
"ChatCompletionsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"object": {
|
||||
"type": "string"
|
||||
},
|
||||
"choices": {
|
||||
|
@ -195,39 +195,47 @@
|
|||
"message": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "integer"
|
||||
},
|
||||
"model": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"object": {
|
||||
"role": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["created", "model", "object"]
|
||||
"required": ["content", "role"]
|
||||
},
|
||||
"usage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"completion_tokens": {
|
||||
"prompt_tokens": {
|
||||
"type": "integer"
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"completion_tokens": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_tokens": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": ["completion_tokens", "prompt_tokens", "total_tokens"]
|
||||
"required": ["prompt_tokens", "completion_tokens", "total_tokens"]
|
||||
}
|
||||
},
|
||||
"required": ["finish_reason", "index", "message", "usage"]
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"created": {
|
||||
"type": "number"
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["object", "choices", "id", "created", "model"]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue