feat(swagger): update swagger (#9518)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
LocalAI [bot]
2026-04-23 23:26:50 +02:00
committed by GitHub
parent 0fb04f7ac3
commit c755cd5ab5
3 changed files with 43 additions and 0 deletions

View File

@@ -3442,6 +3442,7 @@ const docTemplate = `{
}
},
"is_real": {
"description": "Liveness fields — see FaceVerifyResponse for why these are pointers.",
"type": "boolean"
},
"race": {
@@ -3656,12 +3657,25 @@ const docTemplate = `{
"distance": {
"type": "number"
},
"img1_antispoof_score": {
"type": "number"
},
"img1_area": {
"$ref": "#/definitions/schema.FacialArea"
},
"img1_is_real": {
"description": "Liveness fields are only populated when the request set\nanti_spoofing=true. Pointers keep them fully absent from the\nJSON response otherwise, so callers can tell \"not checked\"\napart from \"checked and fake\" (which would collapse to zero\nvalues with plain bool+omitempty).",
"type": "boolean"
},
"img2_antispoof_score": {
"type": "number"
},
"img2_area": {
"$ref": "#/definitions/schema.FacialArea"
},
"img2_is_real": {
"type": "boolean"
},
"model": {
"type": "string"
},

View File

@@ -3439,6 +3439,7 @@
}
},
"is_real": {
"description": "Liveness fields — see FaceVerifyResponse for why these are pointers.",
"type": "boolean"
},
"race": {
@@ -3653,12 +3654,25 @@
"distance": {
"type": "number"
},
"img1_antispoof_score": {
"type": "number"
},
"img1_area": {
"$ref": "#/definitions/schema.FacialArea"
},
"img1_is_real": {
"description": "Liveness fields are only populated when the request set\nanti_spoofing=true. Pointers keep them fully absent from the\nJSON response otherwise, so callers can tell \"not checked\"\napart from \"checked and fake\" (which would collapse to zero\nvalues with plain bool+omitempty).",
"type": "boolean"
},
"img2_antispoof_score": {
"type": "number"
},
"img2_area": {
"$ref": "#/definitions/schema.FacialArea"
},
"img2_is_real": {
"type": "boolean"
},
"model": {
"type": "string"
},

View File

@@ -640,6 +640,7 @@ definitions:
type: number
type: object
is_real:
description: Liveness fields — see FaceVerifyResponse for why these are pointers.
type: boolean
race:
additionalProperties:
@@ -780,10 +781,24 @@ definitions:
type: number
distance:
type: number
img1_antispoof_score:
type: number
img1_area:
$ref: '#/definitions/schema.FacialArea'
img1_is_real:
description: |-
Liveness fields are only populated when the request set
anti_spoofing=true. Pointers keep them fully absent from the
JSON response otherwise, so callers can tell "not checked"
apart from "checked and fake" (which would collapse to zero
values with plain bool+omitempty).
type: boolean
img2_antispoof_score:
type: number
img2_area:
$ref: '#/definitions/schema.FacialArea'
img2_is_real:
type: boolean
model:
type: string
processing_time_ms: