feat(swagger): update swagger (#9187)

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-03-30 23:48:06 +02:00
committed by GitHub
parent 309a59f61e
commit 80699a3f70
3 changed files with 147 additions and 147 deletions

View File

@@ -195,7 +195,7 @@ const docTemplate = `{
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -209,7 +209,7 @@ const docTemplate = `{
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -319,7 +319,7 @@ const docTemplate = `{
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -333,7 +333,7 @@ const docTemplate = `{
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -1055,7 +1055,7 @@ const docTemplate = `{
},
"parameters": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"strict": {
"type": "boolean"
@@ -1067,7 +1067,7 @@ const docTemplate = `{
"properties": {
"properties": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"type": {
"type": "string"
@@ -1079,7 +1079,7 @@ const docTemplate = `{
"properties": {
"$defs": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"anyOf": {
"type": "array",
@@ -1207,7 +1207,7 @@ const docTemplate = `{
"config_file": {
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"description": {
"type": "string"
@@ -1243,7 +1243,7 @@ const docTemplate = `{
"overrides": {
"description": "Overrides are used to override the configuration of the model located at URL",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"size": {
"description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.",
@@ -1266,6 +1266,45 @@ const docTemplate = `{
}
}
},
"galleryop.OpStatus": {
"type": "object",
"properties": {
"cancellable": {
"description": "Cancellable is true if the operation can be cancelled",
"type": "boolean"
},
"cancelled": {
"description": "Cancelled is true if the operation was cancelled",
"type": "boolean"
},
"deletion": {
"description": "Deletion is true if the operation is a deletion",
"type": "boolean"
},
"downloaded_size": {
"type": "string"
},
"error": {},
"file_name": {
"type": "string"
},
"file_size": {
"type": "string"
},
"gallery_element_name": {
"type": "string"
},
"message": {
"type": "string"
},
"processed": {
"type": "boolean"
},
"progress": {
"type": "number"
}
}
},
"localai.GalleryBackend": {
"type": "object",
"properties": {
@@ -1284,7 +1323,7 @@ const docTemplate = `{
"config_file": {
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"description": {
"type": "string"
@@ -1323,7 +1362,7 @@ const docTemplate = `{
"overrides": {
"description": "Overrides are used to override the configuration of the model located at URL",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"size": {
"description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.",
@@ -1419,7 +1458,7 @@ const docTemplate = `{
},
"input": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"is_error": {
"type": "boolean"
@@ -1555,7 +1594,7 @@ const docTemplate = `{
},
"input_schema": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"name": {
"type": "string"
@@ -2071,7 +2110,7 @@ const docTemplate = `{
},
"parameters": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"strict": {
"description": "Always include in response",
@@ -2989,45 +3028,6 @@ const docTemplate = `{
"type": "integer"
}
}
},
"services.GalleryOpStatus": {
"type": "object",
"properties": {
"cancellable": {
"description": "Cancellable is true if the operation can be cancelled",
"type": "boolean"
},
"cancelled": {
"description": "Cancelled is true if the operation was cancelled",
"type": "boolean"
},
"deletion": {
"description": "Deletion is true if the operation is a deletion",
"type": "boolean"
},
"downloaded_size": {
"type": "string"
},
"error": {},
"file_name": {
"type": "string"
},
"file_size": {
"type": "string"
},
"gallery_element_name": {
"type": "string"
},
"message": {
"type": "string"
},
"processed": {
"type": "boolean"
},
"progress": {
"type": "number"
}
}
}
},
"securityDefinitions": {

View File

@@ -188,7 +188,7 @@
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -202,7 +202,7 @@
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -312,7 +312,7 @@
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -326,7 +326,7 @@
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/services.GalleryOpStatus"
"$ref": "#/definitions/galleryop.OpStatus"
}
}
}
@@ -1048,7 +1048,7 @@
},
"parameters": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"strict": {
"type": "boolean"
@@ -1060,7 +1060,7 @@
"properties": {
"properties": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"type": {
"type": "string"
@@ -1072,7 +1072,7 @@
"properties": {
"$defs": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"anyOf": {
"type": "array",
@@ -1200,7 +1200,7 @@
"config_file": {
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"description": {
"type": "string"
@@ -1236,7 +1236,7 @@
"overrides": {
"description": "Overrides are used to override the configuration of the model located at URL",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"size": {
"description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.",
@@ -1259,6 +1259,45 @@
}
}
},
"galleryop.OpStatus": {
"type": "object",
"properties": {
"cancellable": {
"description": "Cancellable is true if the operation can be cancelled",
"type": "boolean"
},
"cancelled": {
"description": "Cancelled is true if the operation was cancelled",
"type": "boolean"
},
"deletion": {
"description": "Deletion is true if the operation is a deletion",
"type": "boolean"
},
"downloaded_size": {
"type": "string"
},
"error": {},
"file_name": {
"type": "string"
},
"file_size": {
"type": "string"
},
"gallery_element_name": {
"type": "string"
},
"message": {
"type": "string"
},
"processed": {
"type": "boolean"
},
"progress": {
"type": "number"
}
}
},
"localai.GalleryBackend": {
"type": "object",
"properties": {
@@ -1277,7 +1316,7 @@
"config_file": {
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"description": {
"type": "string"
@@ -1316,7 +1355,7 @@
"overrides": {
"description": "Overrides are used to override the configuration of the model located at URL",
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"size": {
"description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.",
@@ -1412,7 +1451,7 @@
},
"input": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"is_error": {
"type": "boolean"
@@ -1548,7 +1587,7 @@
},
"input_schema": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"name": {
"type": "string"
@@ -2064,7 +2103,7 @@
},
"parameters": {
"type": "object",
"additionalProperties": true
"additionalProperties": {}
},
"strict": {
"description": "Always include in response",
@@ -2982,45 +3021,6 @@
"type": "integer"
}
}
},
"services.GalleryOpStatus": {
"type": "object",
"properties": {
"cancellable": {
"description": "Cancellable is true if the operation can be cancelled",
"type": "boolean"
},
"cancelled": {
"description": "Cancelled is true if the operation was cancelled",
"type": "boolean"
},
"deletion": {
"description": "Deletion is true if the operation is a deletion",
"type": "boolean"
},
"downloaded_size": {
"type": "string"
},
"error": {},
"file_name": {
"type": "string"
},
"file_size": {
"type": "string"
},
"gallery_element_name": {
"type": "string"
},
"message": {
"type": "string"
},
"processed": {
"type": "boolean"
},
"progress": {
"type": "number"
}
}
}
},
"securityDefinitions": {

View File

@@ -14,7 +14,7 @@ definitions:
name:
type: string
parameters:
additionalProperties: true
additionalProperties: {}
type: object
strict:
type: boolean
@@ -22,7 +22,7 @@ definitions:
functions.Item:
properties:
properties:
additionalProperties: true
additionalProperties: {}
type: object
type:
type: string
@@ -30,7 +30,7 @@ definitions:
functions.JSONFunctionStructure:
properties:
$defs:
additionalProperties: true
additionalProperties: {}
type: object
anyOf:
items:
@@ -120,7 +120,7 @@ definitions:
Populated at load time from overrides, inline config, or the URL-referenced config file.
type: string
config_file:
additionalProperties: true
additionalProperties: {}
description: config_file is read in the situation where URL is blank - and
therefore this is a base config.
type: object
@@ -145,7 +145,7 @@ definitions:
name:
type: string
overrides:
additionalProperties: true
additionalProperties: {}
description: Overrides are used to override the configuration of the model
located at URL
type: object
@@ -165,6 +165,33 @@ definitions:
type: string
type: array
type: object
galleryop.OpStatus:
properties:
cancellable:
description: Cancellable is true if the operation can be cancelled
type: boolean
cancelled:
description: Cancelled is true if the operation was cancelled
type: boolean
deletion:
description: Deletion is true if the operation is a deletion
type: boolean
downloaded_size:
type: string
error: {}
file_name:
type: string
file_size:
type: string
gallery_element_name:
type: string
message:
type: string
processed:
type: boolean
progress:
type: number
type: object
localai.GalleryBackend:
properties:
id:
@@ -178,7 +205,7 @@ definitions:
Populated at load time from overrides, inline config, or the URL-referenced config file.
type: string
config_file:
additionalProperties: true
additionalProperties: {}
description: config_file is read in the situation where URL is blank - and
therefore this is a base config.
type: object
@@ -205,7 +232,7 @@ definitions:
name:
type: string
overrides:
additionalProperties: true
additionalProperties: {}
description: Overrides are used to override the configuration of the model
located at URL
type: object
@@ -275,7 +302,7 @@ definitions:
id:
type: string
input:
additionalProperties: true
additionalProperties: {}
type: object
is_error:
type: boolean
@@ -365,7 +392,7 @@ definitions:
description:
type: string
input_schema:
additionalProperties: true
additionalProperties: {}
type: object
name:
type: string
@@ -706,7 +733,7 @@ definitions:
name:
type: string
parameters:
additionalProperties: true
additionalProperties: {}
type: object
strict:
description: Always include in response
@@ -1331,33 +1358,6 @@ definitions:
width:
type: integer
type: object
services.GalleryOpStatus:
properties:
cancellable:
description: Cancellable is true if the operation can be cancelled
type: boolean
cancelled:
description: Cancelled is true if the operation was cancelled
type: boolean
deletion:
description: Deletion is true if the operation is a deletion
type: boolean
downloaded_size:
type: string
error: {}
file_name:
type: string
file_size:
type: string
gallery_element_name:
type: string
message:
type: string
processed:
type: boolean
progress:
type: number
type: object
info:
contact:
name: LocalAI
@@ -1479,7 +1479,7 @@ paths:
description: Response
schema:
additionalProperties:
$ref: '#/definitions/services.GalleryOpStatus'
$ref: '#/definitions/galleryop.OpStatus'
type: object
summary: Returns all the jobs status progress
/backends/jobs/{uuid}:
@@ -1488,7 +1488,7 @@ paths:
"200":
description: Response
schema:
$ref: '#/definitions/services.GalleryOpStatus'
$ref: '#/definitions/galleryop.OpStatus'
summary: Returns the job status
/metrics:
get:
@@ -1557,7 +1557,7 @@ paths:
description: Response
schema:
additionalProperties:
$ref: '#/definitions/services.GalleryOpStatus'
$ref: '#/definitions/galleryop.OpStatus'
type: object
summary: Returns all the jobs status progress
/models/jobs/{uuid}:
@@ -1566,7 +1566,7 @@ paths:
"200":
description: Response
schema:
$ref: '#/definitions/services.GalleryOpStatus'
$ref: '#/definitions/galleryop.OpStatus'
summary: Returns the job status
/system:
get: