fix response type of document for Text Generation Inference (#2743)

Signed-off-by: jitokim <pigberger70@gmail.com>
This commit is contained in:
jito 2024-11-15 21:21:50 +09:00 committed by GitHub
parent 4f4857a4ac
commit 003eaec0fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -36,8 +36,11 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenerateResponse"
}
}
},
"text/event-stream": {
"schema": {

View File

@ -109,7 +109,7 @@ request_body = CompatGenerateRequest,
responses(
(status = 200, description = "Generated Text",
content(
("application/json" = GenerateResponse),
("application/json" = Vec<GenerateResponse>),
("text/event-stream" = StreamResponse),
)),
(status = 424, description = "Generation Error", body = ErrorResponse,