Unverified Commit 003eaec0 authored by jito's avatar jito Committed by GitHub
Browse files

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


Signed-off-by: default avatarjitokim <pigberger70@gmail.com>
parent 4f4857a4
...@@ -36,8 +36,11 @@ ...@@ -36,8 +36,11 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenerateResponse" "$ref": "#/components/schemas/GenerateResponse"
} }
}
}, },
"text/event-stream": { "text/event-stream": {
"schema": { "schema": {
......
...@@ -109,7 +109,7 @@ request_body = CompatGenerateRequest, ...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment