Specify response schema for compat_generate

This commit is contained in:
Feynman Liang 2023-04-28 12:39:52 -07:00 committed by GitHub
parent 593a563414
commit 0f7d76f927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,14 @@
},
"responses": {
"200": {
"description": "See /generate or /generate_stream"
"description": "Generated Text",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenerateResponse"
}
}
}
},
"422": {
"description": "Input validation error",
@ -727,4 +734,4 @@
"description": "Hugging Face Text Generation Inference API"
}
]
}
}