mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
feat(swagger): update swagger (#2916)
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
82d5123c1e
commit
3f7ec2e596
@ -700,18 +700,6 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Argument": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.Function": {
|
"functions.Function": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -727,48 +715,19 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.FunctionName": {
|
"functions.Item": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"const": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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.FunctionProperties"
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.ItemName": {
|
"functions.JSONFunctionStructure": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"properties": {
|
|
||||||
"$ref": "#/definitions/functions.NameProperties"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.JSONFunctionStructureFunction": {
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -778,49 +737,17 @@ const docTemplate = `{
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.ItemFunction"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.ItemFunction"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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",
|
|
||||||
"properties": {
|
|
||||||
"arguments": {
|
|
||||||
"$ref": "#/definitions/functions.Argument"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"$ref": "#/definitions/functions.FunctionName"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.Tool": {
|
"functions.Tool": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1488,10 +1415,7 @@ const docTemplate = `{
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructureFunction"
|
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
||||||
},
|
|
||||||
"grammar_json_name": {
|
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructureName"
|
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -693,18 +693,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.Argument": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.Function": {
|
"functions.Function": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -720,48 +708,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.FunctionName": {
|
"functions.Item": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"const": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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.FunctionProperties"
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"functions.ItemName": {
|
"functions.JSONFunctionStructure": {
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"properties": {
|
|
||||||
"$ref": "#/definitions/functions.NameProperties"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.JSONFunctionStructureFunction": {
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -771,49 +730,17 @@
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.ItemFunction"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/functions.ItemFunction"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"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",
|
|
||||||
"properties": {
|
|
||||||
"arguments": {
|
|
||||||
"$ref": "#/definitions/functions.Argument"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"$ref": "#/definitions/functions.FunctionName"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"functions.Tool": {
|
"functions.Tool": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -1481,10 +1408,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructureFunction"
|
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
||||||
},
|
|
||||||
"grammar_json_name": {
|
|
||||||
"$ref": "#/definitions/functions.JSONFunctionStructureName"
|
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -7,14 +7,6 @@ definitions:
|
|||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
functions.Argument:
|
|
||||||
properties:
|
|
||||||
properties:
|
|
||||||
additionalProperties: true
|
|
||||||
type: object
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
functions.Function:
|
functions.Function:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
@ -25,67 +17,28 @@ definitions:
|
|||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
functions.FunctionName:
|
functions.Item:
|
||||||
properties:
|
properties:
|
||||||
const:
|
properties:
|
||||||
type: string
|
additionalProperties: true
|
||||||
type: object
|
type: object
|
||||||
functions.FunctionProperties:
|
|
||||||
properties:
|
|
||||||
arguments:
|
|
||||||
$ref: '#/definitions/functions.Argument'
|
|
||||||
function:
|
|
||||||
$ref: '#/definitions/functions.FunctionName'
|
|
||||||
type: object
|
|
||||||
functions.ItemFunction:
|
|
||||||
properties:
|
|
||||||
properties:
|
|
||||||
$ref: '#/definitions/functions.FunctionProperties'
|
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
functions.ItemName:
|
functions.JSONFunctionStructure:
|
||||||
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.ItemFunction'
|
$ref: '#/definitions/functions.Item'
|
||||||
type: array
|
type: array
|
||||||
oneOf:
|
oneOf:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/functions.ItemFunction'
|
$ref: '#/definitions/functions.Item'
|
||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
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:
|
|
||||||
arguments:
|
|
||||||
$ref: '#/definitions/functions.Argument'
|
|
||||||
name:
|
|
||||||
$ref: '#/definitions/functions.FunctionName'
|
|
||||||
type: object
|
|
||||||
functions.Tool:
|
functions.Tool:
|
||||||
properties:
|
properties:
|
||||||
function:
|
function:
|
||||||
@ -538,9 +491,7 @@ 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.JSONFunctionStructureFunction'
|
$ref: '#/definitions/functions.JSONFunctionStructure'
|
||||||
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