Skip to content

Commit 6bc76dd

Browse files
localai-botmudler
andauthored
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>
1 parent e1a6010 commit 6bc76dd

3 files changed

Lines changed: 80 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,9 +2698,16 @@ const docTemplate = `{
26982698
"class_name": {
26992699
"type": "string"
27002700
},
2701+
"confidence": {
2702+
"type": "number"
2703+
},
27012704
"height": {
27022705
"type": "number"
27032706
},
2707+
"mask": {
2708+
"description": "base64-encoded PNG segmentation mask",
2709+
"type": "string"
2710+
},
27042711
"width": {
27052712
"type": "number"
27062713
},
@@ -2715,12 +2722,34 @@ const docTemplate = `{
27152722
"schema.DetectionRequest": {
27162723
"type": "object",
27172724
"properties": {
2725+
"boxes": {
2726+
"description": "Box coordinates as [x1,y1,x2,y2,...] quads",
2727+
"type": "array",
2728+
"items": {
2729+
"type": "number"
2730+
}
2731+
},
27182732
"image": {
27192733
"description": "URL or base64-encoded image to analyze",
27202734
"type": "string"
27212735
},
27222736
"model": {
27232737
"type": "string"
2738+
},
2739+
"points": {
2740+
"description": "Point coordinates as [x,y,label,...] triples (label: 1=pos, 0=neg)",
2741+
"type": "array",
2742+
"items": {
2743+
"type": "number"
2744+
}
2745+
},
2746+
"prompt": {
2747+
"description": "Text prompt (for SAM 3 PCS mode)",
2748+
"type": "string"
2749+
},
2750+
"threshold": {
2751+
"description": "Detection confidence threshold",
2752+
"type": "number"
27242753
}
27252754
}
27262755
},

swagger/swagger.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,9 +2695,16 @@
26952695
"class_name": {
26962696
"type": "string"
26972697
},
2698+
"confidence": {
2699+
"type": "number"
2700+
},
26982701
"height": {
26992702
"type": "number"
27002703
},
2704+
"mask": {
2705+
"description": "base64-encoded PNG segmentation mask",
2706+
"type": "string"
2707+
},
27012708
"width": {
27022709
"type": "number"
27032710
},
@@ -2712,12 +2719,34 @@
27122719
"schema.DetectionRequest": {
27132720
"type": "object",
27142721
"properties": {
2722+
"boxes": {
2723+
"description": "Box coordinates as [x1,y1,x2,y2,...] quads",
2724+
"type": "array",
2725+
"items": {
2726+
"type": "number"
2727+
}
2728+
},
27152729
"image": {
27162730
"description": "URL or base64-encoded image to analyze",
27172731
"type": "string"
27182732
},
27192733
"model": {
27202734
"type": "string"
2735+
},
2736+
"points": {
2737+
"description": "Point coordinates as [x,y,label,...] triples (label: 1=pos, 0=neg)",
2738+
"type": "array",
2739+
"items": {
2740+
"type": "number"
2741+
}
2742+
},
2743+
"prompt": {
2744+
"description": "Text prompt (for SAM 3 PCS mode)",
2745+
"type": "string"
2746+
},
2747+
"threshold": {
2748+
"description": "Detection confidence threshold",
2749+
"type": "number"
27212750
}
27222751
}
27232752
},

swagger/swagger.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,13 @@ definitions:
485485
properties:
486486
class_name:
487487
type: string
488+
confidence:
489+
type: number
488490
height:
489491
type: number
492+
mask:
493+
description: base64-encoded PNG segmentation mask
494+
type: string
490495
width:
491496
type: number
492497
x:
@@ -496,11 +501,28 @@ definitions:
496501
type: object
497502
schema.DetectionRequest:
498503
properties:
504+
boxes:
505+
description: Box coordinates as [x1,y1,x2,y2,...] quads
506+
items:
507+
type: number
508+
type: array
499509
image:
500510
description: URL or base64-encoded image to analyze
501511
type: string
502512
model:
503513
type: string
514+
points:
515+
description: 'Point coordinates as [x,y,label,...] triples (label: 1=pos,
516+
0=neg)'
517+
items:
518+
type: number
519+
type: array
520+
prompt:
521+
description: Text prompt (for SAM 3 PCS mode)
522+
type: string
523+
threshold:
524+
description: Detection confidence threshold
525+
type: number
504526
type: object
505527
schema.DetectionResponse:
506528
properties:

0 commit comments

Comments
 (0)