mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 05:07:54 +00:00
feat(swagger): update swagger (#2302)
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:
parent
5b79bd04a7
commit
5534b13903
@ -269,18 +269,40 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Item": {
|
"functions.FunctionProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"arguments": {
|
||||||
|
"$ref": "#/definitions/functions.Argument"
|
||||||
|
},
|
||||||
|
"function": {
|
||||||
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.ItemFunction": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"$ref": "#/definitions/functions.Properties"
|
"$ref": "#/definitions/functions.FunctionProperties"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.JSONFunctionStructure": {
|
"functions.ItemName": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/functions.NameProperties"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.JSONFunctionStructureFunction": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -290,24 +312,45 @@ const docTemplate = `{
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.Item"
|
"$ref": "#/definitions/functions.ItemFunction"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.Item"
|
"$ref": "#/definitions/functions.ItemFunction"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Properties": {
|
"functions.JSONFunctionStructureName": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"$defs": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
|
},
|
||||||
|
"anyOf": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/functions.ItemName"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oneOf": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/functions.ItemName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.NameProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"$ref": "#/definitions/functions.Argument"
|
"$ref": "#/definitions/functions.Argument"
|
||||||
},
|
},
|
||||||
"function": {
|
"name": {
|
||||||
"$ref": "#/definitions/functions.FunctionName"
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -572,7 +615,10 @@ const docTemplate = `{
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
"$ref": "#/definitions/functions.JSONFunctionStructureFunction"
|
||||||
|
},
|
||||||
|
"grammar_json_name": {
|
||||||
|
"$ref": "#/definitions/functions.JSONFunctionStructureName"
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -262,18 +262,40 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Item": {
|
"functions.FunctionProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"arguments": {
|
||||||
|
"$ref": "#/definitions/functions.Argument"
|
||||||
|
},
|
||||||
|
"function": {
|
||||||
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.ItemFunction": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"$ref": "#/definitions/functions.Properties"
|
"$ref": "#/definitions/functions.FunctionProperties"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.JSONFunctionStructure": {
|
"functions.ItemName": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"properties": {
|
||||||
|
"$ref": "#/definitions/functions.NameProperties"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.JSONFunctionStructureFunction": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -283,24 +305,45 @@
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.Item"
|
"$ref": "#/definitions/functions.ItemFunction"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.Item"
|
"$ref": "#/definitions/functions.ItemFunction"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Properties": {
|
"functions.JSONFunctionStructureName": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"$defs": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
|
},
|
||||||
|
"anyOf": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/functions.ItemName"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oneOf": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/functions.ItemName"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"functions.NameProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"$ref": "#/definitions/functions.Argument"
|
"$ref": "#/definitions/functions.Argument"
|
||||||
},
|
},
|
||||||
"function": {
|
"name": {
|
||||||
"$ref": "#/definitions/functions.FunctionName"
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -565,7 +608,10 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
"$ref": "#/definitions/functions.JSONFunctionStructureFunction"
|
||||||
|
},
|
||||||
|
"grammar_json_name": {
|
||||||
|
"$ref": "#/definitions/functions.JSONFunctionStructureName"
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -23,32 +23,60 @@ definitions:
|
|||||||
const:
|
const:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
functions.Item:
|
functions.FunctionProperties:
|
||||||
|
properties:
|
||||||
|
arguments:
|
||||||
|
$ref: '#/definitions/functions.Argument'
|
||||||
|
function:
|
||||||
|
$ref: '#/definitions/functions.FunctionName'
|
||||||
|
type: object
|
||||||
|
functions.ItemFunction:
|
||||||
properties:
|
properties:
|
||||||
properties:
|
properties:
|
||||||
$ref: '#/definitions/functions.Properties'
|
$ref: '#/definitions/functions.FunctionProperties'
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
functions.JSONFunctionStructure:
|
functions.ItemName:
|
||||||
|
properties:
|
||||||
|
properties:
|
||||||
|
$ref: '#/definitions/functions.NameProperties'
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
functions.JSONFunctionStructureFunction:
|
||||||
properties:
|
properties:
|
||||||
$defs:
|
$defs:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
type: object
|
type: object
|
||||||
anyOf:
|
anyOf:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/functions.Item'
|
$ref: '#/definitions/functions.ItemFunction'
|
||||||
type: array
|
type: array
|
||||||
oneOf:
|
oneOf:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/functions.Item'
|
$ref: '#/definitions/functions.ItemFunction'
|
||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
functions.Properties:
|
functions.JSONFunctionStructureName:
|
||||||
|
properties:
|
||||||
|
$defs:
|
||||||
|
additionalProperties: true
|
||||||
|
type: object
|
||||||
|
anyOf:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/functions.ItemName'
|
||||||
|
type: array
|
||||||
|
oneOf:
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/functions.ItemName'
|
||||||
|
type: array
|
||||||
|
type: object
|
||||||
|
functions.NameProperties:
|
||||||
properties:
|
properties:
|
||||||
arguments:
|
arguments:
|
||||||
$ref: '#/definitions/functions.Argument'
|
$ref: '#/definitions/functions.Argument'
|
||||||
function:
|
name:
|
||||||
$ref: '#/definitions/functions.FunctionName'
|
$ref: '#/definitions/functions.FunctionName'
|
||||||
type: object
|
type: object
|
||||||
functions.Tool:
|
functions.Tool:
|
||||||
@ -227,7 +255,9 @@ definitions:
|
|||||||
description: A grammar to constrain the LLM output
|
description: A grammar to constrain the LLM output
|
||||||
type: string
|
type: string
|
||||||
grammar_json_functions:
|
grammar_json_functions:
|
||||||
$ref: '#/definitions/functions.JSONFunctionStructure'
|
$ref: '#/definitions/functions.JSONFunctionStructureFunction'
|
||||||
|
grammar_json_name:
|
||||||
|
$ref: '#/definitions/functions.JSONFunctionStructureName'
|
||||||
ignore_eos:
|
ignore_eos:
|
||||||
type: boolean
|
type: boolean
|
||||||
input: {}
|
input: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user