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,7 +36,10 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/GenerateResponse" "type": "array",
"items": {
"$ref": "#/components/schemas/GenerateResponse"
}
} }
}, },
"text/event-stream": { "text/event-stream": {

View File

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