diff --git a/swagger/docs.go b/swagger/docs.go index 19cb95fd2..20a1f5a3f 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -500,6 +500,25 @@ const docTemplate = `{ } } }, + "/api/aliases": { + "get": { + "tags": [ + "models" + ], + "summary": "List model aliases", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/localai.AliasInfo" + } + } + } + } + } + }, "/api/backend-logs": { "get": { "description": "Returns a sorted list of model IDs that have captured backend process output", @@ -3486,6 +3505,17 @@ const docTemplate = `{ } } }, + "localai.AliasInfo": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "target": { + "type": "string" + } + } + }, "localai.BrandingResponse": { "type": "object", "properties": { diff --git a/swagger/swagger.json b/swagger/swagger.json index e23b81cea..09e03581b 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -497,6 +497,25 @@ } } }, + "/api/aliases": { + "get": { + "tags": [ + "models" + ], + "summary": "List model aliases", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/localai.AliasInfo" + } + } + } + } + } + }, "/api/backend-logs": { "get": { "description": "Returns a sorted list of model IDs that have captured backend process output", @@ -3483,6 +3502,17 @@ } } }, + "localai.AliasInfo": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "target": { + "type": "string" + } + } + }, "localai.BrandingResponse": { "type": "object", "properties": { diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 719b72f6c..a25674539 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -281,6 +281,13 @@ definitions: type: string type: array type: object + localai.AliasInfo: + properties: + name: + type: string + target: + type: string + type: object localai.BrandingResponse: properties: favicon_url: @@ -2780,6 +2787,18 @@ paths: summary: Execute an agent task by name tags: - agent-jobs + /api/aliases: + get: + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/localai.AliasInfo' + type: array + summary: List model aliases + tags: + - models /api/backend-logs: get: description: Returns a sorted list of model IDs that have captured backend process