feat(swagger): update swagger (#9300)

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-10 01:05:53 +02:00
committed by GitHub
parent e1a6010874
commit 6bc76dda6d
3 changed files with 80 additions and 0 deletions

View File

@@ -2698,9 +2698,16 @@ const docTemplate = `{
"class_name": {
"type": "string"
},
"confidence": {
"type": "number"
},
"height": {
"type": "number"
},
"mask": {
"description": "base64-encoded PNG segmentation mask",
"type": "string"
},
"width": {
"type": "number"
},
@@ -2715,12 +2722,34 @@ const docTemplate = `{
"schema.DetectionRequest": {
"type": "object",
"properties": {
"boxes": {
"description": "Box coordinates as [x1,y1,x2,y2,...] quads",
"type": "array",
"items": {
"type": "number"
}
},
"image": {
"description": "URL or base64-encoded image to analyze",
"type": "string"
},
"model": {
"type": "string"
},
"points": {
"description": "Point coordinates as [x,y,label,...] triples (label: 1=pos, 0=neg)",
"type": "array",
"items": {
"type": "number"
}
},
"prompt": {
"description": "Text prompt (for SAM 3 PCS mode)",
"type": "string"
},
"threshold": {
"description": "Detection confidence threshold",
"type": "number"
}
}
},

View File

@@ -2695,9 +2695,16 @@
"class_name": {
"type": "string"
},
"confidence": {
"type": "number"
},
"height": {
"type": "number"
},
"mask": {
"description": "base64-encoded PNG segmentation mask",
"type": "string"
},
"width": {
"type": "number"
},
@@ -2712,12 +2719,34 @@
"schema.DetectionRequest": {
"type": "object",
"properties": {
"boxes": {
"description": "Box coordinates as [x1,y1,x2,y2,...] quads",
"type": "array",
"items": {
"type": "number"
}
},
"image": {
"description": "URL or base64-encoded image to analyze",
"type": "string"
},
"model": {
"type": "string"
},
"points": {
"description": "Point coordinates as [x,y,label,...] triples (label: 1=pos, 0=neg)",
"type": "array",
"items": {
"type": "number"
}
},
"prompt": {
"description": "Text prompt (for SAM 3 PCS mode)",
"type": "string"
},
"threshold": {
"description": "Detection confidence threshold",
"type": "number"
}
}
},

View File

@@ -485,8 +485,13 @@ definitions:
properties:
class_name:
type: string
confidence:
type: number
height:
type: number
mask:
description: base64-encoded PNG segmentation mask
type: string
width:
type: number
x:
@@ -496,11 +501,28 @@ definitions:
type: object
schema.DetectionRequest:
properties:
boxes:
description: Box coordinates as [x1,y1,x2,y2,...] quads
items:
type: number
type: array
image:
description: URL or base64-encoded image to analyze
type: string
model:
type: string
points:
description: 'Point coordinates as [x,y,label,...] triples (label: 1=pos,
0=neg)'
items:
type: number
type: array
prompt:
description: Text prompt (for SAM 3 PCS mode)
type: string
threshold:
description: Detection confidence threshold
type: number
type: object
schema.DetectionResponse:
properties: