mirror of
https://github.com/mudler/LocalAI.git
synced 2026-05-18 13:38:49 -04:00
feat(swagger): update swagger (#9643)
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:
144
swagger/docs.go
144
swagger/docs.go
@@ -613,6 +613,101 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/branding": {
|
||||
"get": {
|
||||
"description": "Returns the configured instance name, tagline, and asset URLs. Public — no authentication required.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"branding"
|
||||
],
|
||||
"summary": "Get instance branding",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/localai.BrandingResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/branding/asset/{kind}": {
|
||||
"post": {
|
||||
"description": "Upload a custom logo, horizontal logo, or favicon. The file replaces any previous override for that kind.",
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"branding"
|
||||
],
|
||||
"summary": "Upload a branding asset",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Asset kind: logo, logo_horizontal, or favicon",
|
||||
"name": "kind",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"description": "Image file (png, jpeg, svg, webp, ico — up to 5MiB)",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/localai.BrandingResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"description": "Remove a custom branding asset; the UI falls back to the bundled LocalAI default.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"branding"
|
||||
],
|
||||
"summary": "Reset a branding asset to default",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Asset kind: logo, logo_horizontal, or favicon",
|
||||
"name": "kind",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/localai.BrandingResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/instructions": {
|
||||
"get": {
|
||||
"description": "Returns a compact list of instruction areas with descriptions and URLs for detailed guides",
|
||||
@@ -1332,6 +1427,35 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/branding/asset/{kind}": {
|
||||
"get": {
|
||||
"description": "Serves the admin-uploaded logo, horizontal logo, or favicon. 404 when no override is set.",
|
||||
"produces": [
|
||||
"image/*"
|
||||
],
|
||||
"tags": [
|
||||
"branding"
|
||||
],
|
||||
"summary": "Serve a custom branding asset",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Asset kind: logo, logo_horizontal, or favicon",
|
||||
"name": "kind",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/metrics": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -2931,6 +3055,26 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"localai.BrandingResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"favicon_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"instance_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"instance_tagline": {
|
||||
"type": "string"
|
||||
},
|
||||
"logo_horizontal_url": {
|
||||
"type": "string"
|
||||
},
|
||||
"logo_url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"localai.GalleryBackend": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user