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