mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-21 06:42:10 +00:00
fix response type of document for Text Generation Inference (#2743)
Signed-off-by: jitokim <pigberger70@gmail.com>
This commit is contained in:
parent
4f4857a4ac
commit
003eaec0fb
@ -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,
|
|||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user