chore: update openapi schema

This commit is contained in:
OlivierDehaene 2023-06-05 18:16:08 +02:00
parent 6abec14a7e
commit 19c41824cb
2 changed files with 7 additions and 2 deletions

View File

@ -375,7 +375,8 @@
"$ref": "#/components/schemas/GenerateParameters" "$ref": "#/components/schemas/GenerateParameters"
}, },
"stream": { "stream": {
"type": "boolean" "type": "boolean",
"default": "false"
} }
} }
}, },
@ -459,6 +460,10 @@
"minimum": 0.0, "minimum": 0.0,
"exclusiveMinimum": 0.0 "exclusiveMinimum": 0.0
}, },
"decoder_input_details": {
"type": "boolean",
"default": "true"
},
"details": { "details": {
"type": "boolean", "type": "boolean",
"default": "true" "default": "true"

View File

@ -176,7 +176,7 @@ pub(crate) struct CompatGenerateRequest {
#[serde(default = "default_parameters")] #[serde(default = "default_parameters")]
pub parameters: GenerateParameters, pub parameters: GenerateParameters,
#[serde(default)] #[serde(default)]
#[allow(dead_code)] #[schema(default = "false")]
pub stream: bool, pub stream: bool,
} }