mirror of
https://github.com/mudler/LocalAI.git
synced 2026-04-19 22:40:35 -04:00
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user