"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "995c1913aa29b9f21dd6bd48cd65445c153d9c45"
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,7 +36,10 @@ ...@@ -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": {
......
...@@ -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