Skip to content

Commit 6054d2a

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#9075)
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 aea2195 commit 6054d2a

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,10 @@ const docTemplate = `{
16131613
"alias": {
16141614
"type": "string"
16151615
},
1616+
"backend": {
1617+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1618+
"type": "string"
1619+
},
16161620
"capabilities": {
16171621
"type": "object",
16181622
"additionalProperties": {
@@ -1683,6 +1687,10 @@ const docTemplate = `{
16831687
"gallery.GalleryModel": {
16841688
"type": "object",
16851689
"properties": {
1690+
"backend": {
1691+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1692+
"type": "string"
1693+
},
16861694
"config_file": {
16871695
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
16881696
"type": "object",
@@ -1756,6 +1764,10 @@ const docTemplate = `{
17561764
"localai.GalleryModel": {
17571765
"type": "object",
17581766
"properties": {
1767+
"backend": {
1768+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1769+
"type": "string"
1770+
},
17591771
"config_file": {
17601772
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
17611773
"type": "object",

swagger/swagger.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,10 @@
16061606
"alias": {
16071607
"type": "string"
16081608
},
1609+
"backend": {
1610+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1611+
"type": "string"
1612+
},
16091613
"capabilities": {
16101614
"type": "object",
16111615
"additionalProperties": {
@@ -1676,6 +1680,10 @@
16761680
"gallery.GalleryModel": {
16771681
"type": "object",
16781682
"properties": {
1683+
"backend": {
1684+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1685+
"type": "string"
1686+
},
16791687
"config_file": {
16801688
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
16811689
"type": "object",
@@ -1749,6 +1757,10 @@
17491757
"localai.GalleryModel": {
17501758
"type": "object",
17511759
"properties": {
1760+
"backend": {
1761+
"description": "Backend is the resolved backend engine for this model (e.g. \"llama-cpp\").\nPopulated at load time from overrides, inline config, or the URL-referenced config file.",
1762+
"type": "string"
1763+
},
17521764
"config_file": {
17531765
"description": "config_file is read in the situation where URL is blank - and therefore this is a base config.",
17541766
"type": "object",

swagger/swagger.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ definitions:
6161
properties:
6262
alias:
6363
type: string
64+
backend:
65+
description: |-
66+
Backend is the resolved backend engine for this model (e.g. "llama-cpp").
67+
Populated at load time from overrides, inline config, or the URL-referenced config file.
68+
type: string
6469
capabilities:
6570
additionalProperties:
6671
type: string
@@ -109,6 +114,11 @@ definitions:
109114
type: object
110115
gallery.GalleryModel:
111116
properties:
117+
backend:
118+
description: |-
119+
Backend is the resolved backend engine for this model (e.g. "llama-cpp").
120+
Populated at load time from overrides, inline config, or the URL-referenced config file.
121+
type: string
112122
config_file:
113123
additionalProperties: true
114124
description: config_file is read in the situation where URL is blank - and
@@ -162,6 +172,11 @@ definitions:
162172
type: object
163173
localai.GalleryModel:
164174
properties:
175+
backend:
176+
description: |-
177+
Backend is the resolved backend engine for this model (e.g. "llama-cpp").
178+
Populated at load time from overrides, inline config, or the URL-referenced config file.
179+
type: string
165180
config_file:
166181
additionalProperties: true
167182
description: config_file is read in the situation where URL is blank - and

0 commit comments

Comments
 (0)