mirror of
https://github.com/mudler/LocalAI.git
synced 2025-12-23 22:49:10 -05:00
feat(swagger): update swagger (#7400)
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:
@@ -1989,6 +1989,13 @@ const docTemplate = `{
|
||||
"schema.Job": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"audios": {
|
||||
"description": "List of audio URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1999,10 +2006,24 @@ const docTemplate = `{
|
||||
"description": "Error message if failed",
|
||||
"type": "string"
|
||||
},
|
||||
"files": {
|
||||
"description": "List of file URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"description": "UUID",
|
||||
"type": "string"
|
||||
},
|
||||
"images": {
|
||||
"description": "Multimedia content (for manual execution)\nCan contain URLs or base64-encoded data URIs",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Template parameters",
|
||||
"type": "object",
|
||||
@@ -2040,6 +2061,13 @@ const docTemplate = `{
|
||||
"description": "\"manual\", \"cron\", \"api\"",
|
||||
"type": "string"
|
||||
},
|
||||
"videos": {
|
||||
"description": "List of video URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"webhook_error": {
|
||||
"description": "Error if webhook failed",
|
||||
"type": "string"
|
||||
@@ -2056,6 +2084,27 @@ const docTemplate = `{
|
||||
"schema.JobExecutionRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"audios": {
|
||||
"description": "List of audio URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"description": "List of file URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"images": {
|
||||
"description": "Multimedia content (optional, for manual execution)\nCan contain URLs or base64-encoded data URIs",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Optional, for templating",
|
||||
"type": "object",
|
||||
@@ -2066,6 +2115,13 @@ const docTemplate = `{
|
||||
"task_id": {
|
||||
"description": "Required",
|
||||
"type": "string"
|
||||
},
|
||||
"videos": {
|
||||
"description": "List of video URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2233,6 +2289,26 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"schema.MultimediaSourceConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"headers": {
|
||||
"description": "Custom headers for HTTP request (e.g., Authorization)",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"description": "\"image\", \"video\", \"audio\", \"file\"",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"description": "URL to fetch from",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"schema.NodeData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2623,6 +2699,13 @@ const docTemplate = `{
|
||||
"description": "Model name (must have MCP config)",
|
||||
"type": "string"
|
||||
},
|
||||
"multimedia_sources": {
|
||||
"description": "Multimedia sources (for cron jobs)\nURLs to fetch multimedia content from when cron job executes\nEach source can have custom headers for authentication/authorization",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/schema.MultimediaSourceConfig"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"description": "User-friendly name",
|
||||
"type": "string"
|
||||
|
||||
@@ -1982,6 +1982,13 @@
|
||||
"schema.Job": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"audios": {
|
||||
"description": "List of audio URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1992,10 +1999,24 @@
|
||||
"description": "Error message if failed",
|
||||
"type": "string"
|
||||
},
|
||||
"files": {
|
||||
"description": "List of file URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"description": "UUID",
|
||||
"type": "string"
|
||||
},
|
||||
"images": {
|
||||
"description": "Multimedia content (for manual execution)\nCan contain URLs or base64-encoded data URIs",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Template parameters",
|
||||
"type": "object",
|
||||
@@ -2033,6 +2054,13 @@
|
||||
"description": "\"manual\", \"cron\", \"api\"",
|
||||
"type": "string"
|
||||
},
|
||||
"videos": {
|
||||
"description": "List of video URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"webhook_error": {
|
||||
"description": "Error if webhook failed",
|
||||
"type": "string"
|
||||
@@ -2049,6 +2077,27 @@
|
||||
"schema.JobExecutionRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"audios": {
|
||||
"description": "List of audio URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"description": "List of file URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"images": {
|
||||
"description": "Multimedia content (optional, for manual execution)\nCan contain URLs or base64-encoded data URIs",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Optional, for templating",
|
||||
"type": "object",
|
||||
@@ -2059,6 +2108,13 @@
|
||||
"task_id": {
|
||||
"description": "Required",
|
||||
"type": "string"
|
||||
},
|
||||
"videos": {
|
||||
"description": "List of video URLs or base64 strings",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2226,6 +2282,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"schema.MultimediaSourceConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"headers": {
|
||||
"description": "Custom headers for HTTP request (e.g., Authorization)",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"description": "\"image\", \"video\", \"audio\", \"file\"",
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"description": "URL to fetch from",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"schema.NodeData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2616,6 +2692,13 @@
|
||||
"description": "Model name (must have MCP config)",
|
||||
"type": "string"
|
||||
},
|
||||
"multimedia_sources": {
|
||||
"description": "Multimedia sources (for cron jobs)\nURLs to fetch multimedia content from when cron job executes\nEach source can have custom headers for authentication/authorization",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/schema.MultimediaSourceConfig"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"description": "User-friendly name",
|
||||
"type": "string"
|
||||
|
||||
@@ -385,6 +385,11 @@ definitions:
|
||||
type: object
|
||||
schema.Job:
|
||||
properties:
|
||||
audios:
|
||||
description: List of audio URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
completed_at:
|
||||
type: string
|
||||
created_at:
|
||||
@@ -392,9 +397,21 @@ definitions:
|
||||
error:
|
||||
description: Error message if failed
|
||||
type: string
|
||||
files:
|
||||
description: List of file URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
id:
|
||||
description: UUID
|
||||
type: string
|
||||
images:
|
||||
description: |-
|
||||
Multimedia content (for manual execution)
|
||||
Can contain URLs or base64-encoded data URIs
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
parameters:
|
||||
additionalProperties:
|
||||
type: string
|
||||
@@ -420,6 +437,11 @@ definitions:
|
||||
triggered_by:
|
||||
description: '"manual", "cron", "api"'
|
||||
type: string
|
||||
videos:
|
||||
description: List of video URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
webhook_error:
|
||||
description: Error if webhook failed
|
||||
type: string
|
||||
@@ -431,6 +453,23 @@ definitions:
|
||||
type: object
|
||||
schema.JobExecutionRequest:
|
||||
properties:
|
||||
audios:
|
||||
description: List of audio URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
files:
|
||||
description: List of file URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
images:
|
||||
description: |-
|
||||
Multimedia content (optional, for manual execution)
|
||||
Can contain URLs or base64-encoded data URIs
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
parameters:
|
||||
additionalProperties:
|
||||
type: string
|
||||
@@ -439,6 +478,11 @@ definitions:
|
||||
task_id:
|
||||
description: Required
|
||||
type: string
|
||||
videos:
|
||||
description: List of video URLs or base64 strings
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
schema.JobExecutionResponse:
|
||||
properties:
|
||||
@@ -553,6 +597,20 @@ definitions:
|
||||
object:
|
||||
type: string
|
||||
type: object
|
||||
schema.MultimediaSourceConfig:
|
||||
properties:
|
||||
headers:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Custom headers for HTTP request (e.g., Authorization)
|
||||
type: object
|
||||
type:
|
||||
description: '"image", "video", "audio", "file"'
|
||||
type: string
|
||||
url:
|
||||
description: URL to fetch from
|
||||
type: string
|
||||
type: object
|
||||
schema.NodeData:
|
||||
properties:
|
||||
id:
|
||||
@@ -826,6 +884,14 @@ definitions:
|
||||
model:
|
||||
description: Model name (must have MCP config)
|
||||
type: string
|
||||
multimedia_sources:
|
||||
description: |-
|
||||
Multimedia sources (for cron jobs)
|
||||
URLs to fetch multimedia content from when cron job executes
|
||||
Each source can have custom headers for authentication/authorization
|
||||
items:
|
||||
$ref: '#/definitions/schema.MultimediaSourceConfig'
|
||||
type: array
|
||||
name:
|
||||
description: User-friendly name
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user