mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
feat(swagger): update swagger (#2128)
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
2ada13b1ad
commit
4ae4e44506
@ -1,5 +1,4 @@
|
|||||||
// Code generated by swaggo/swag. DO NOT EDIT.
|
// Package swagger Code generated by swaggo/swag. DO NOT EDIT
|
||||||
|
|
||||||
package swagger
|
package swagger
|
||||||
|
|
||||||
import "github.com/swaggo/swag"
|
import "github.com/swaggo/swag"
|
||||||
@ -235,7 +234,7 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"grammar.Argument": {
|
"functions.Argument": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -247,7 +246,7 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Function": {
|
"functions.Function": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"description": {
|
"description": {
|
||||||
@ -262,7 +261,7 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.FunctionName": {
|
"functions.FunctionName": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"const": {
|
"const": {
|
||||||
@ -270,18 +269,18 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Item": {
|
"functions.Item": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"$ref": "#/definitions/grammar.Properties"
|
"$ref": "#/definitions/functions.Properties"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.JSONFunctionStructure": {
|
"functions.JSONFunctionStructure": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -291,33 +290,33 @@ const docTemplate = `{
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Item"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Item"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Properties": {
|
"functions.Properties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"$ref": "#/definitions/grammar.Argument"
|
"$ref": "#/definitions/functions.Argument"
|
||||||
},
|
},
|
||||||
"function": {
|
"function": {
|
||||||
"$ref": "#/definitions/grammar.FunctionName"
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Tool": {
|
"functions.Tool": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"function": {
|
"function": {
|
||||||
"$ref": "#/definitions/grammar.Function"
|
"$ref": "#/definitions/functions.Function"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -565,7 +564,7 @@ const docTemplate = `{
|
|||||||
"description": "A list of available functions to call",
|
"description": "A list of available functions to call",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Function"
|
"$ref": "#/definitions/functions.Function"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar": {
|
"grammar": {
|
||||||
@ -573,7 +572,7 @@ const docTemplate = `{
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/grammar.JSONFunctionStructure"
|
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
@ -673,7 +672,7 @@ const docTemplate = `{
|
|||||||
"tools": {
|
"tools": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Tool"
|
"$ref": "#/definitions/functions.Tool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"top_k": {
|
"top_k": {
|
||||||
|
@ -227,7 +227,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"grammar.Argument": {
|
"functions.Argument": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -239,7 +239,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Function": {
|
"functions.Function": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"description": {
|
"description": {
|
||||||
@ -254,7 +254,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.FunctionName": {
|
"functions.FunctionName": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"const": {
|
"const": {
|
||||||
@ -262,18 +262,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Item": {
|
"functions.Item": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"$ref": "#/definitions/grammar.Properties"
|
"$ref": "#/definitions/functions.Properties"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.JSONFunctionStructure": {
|
"functions.JSONFunctionStructure": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"$defs": {
|
"$defs": {
|
||||||
@ -283,33 +283,33 @@
|
|||||||
"anyOf": {
|
"anyOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Item"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": {
|
"oneOf": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Item"
|
"$ref": "#/definitions/functions.Item"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Properties": {
|
"functions.Properties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"$ref": "#/definitions/grammar.Argument"
|
"$ref": "#/definitions/functions.Argument"
|
||||||
},
|
},
|
||||||
"function": {
|
"function": {
|
||||||
"$ref": "#/definitions/grammar.FunctionName"
|
"$ref": "#/definitions/functions.FunctionName"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar.Tool": {
|
"functions.Tool": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"function": {
|
"function": {
|
||||||
"$ref": "#/definitions/grammar.Function"
|
"$ref": "#/definitions/functions.Function"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -557,7 +557,7 @@
|
|||||||
"description": "A list of available functions to call",
|
"description": "A list of available functions to call",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Function"
|
"$ref": "#/definitions/functions.Function"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grammar": {
|
"grammar": {
|
||||||
@ -565,7 +565,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"grammar_json_functions": {
|
"grammar_json_functions": {
|
||||||
"$ref": "#/definitions/grammar.JSONFunctionStructure"
|
"$ref": "#/definitions/functions.JSONFunctionStructure"
|
||||||
},
|
},
|
||||||
"ignore_eos": {
|
"ignore_eos": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
@ -665,7 +665,7 @@
|
|||||||
"tools": {
|
"tools": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/grammar.Tool"
|
"$ref": "#/definitions/functions.Tool"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"top_k": {
|
"top_k": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
basePath: /
|
basePath: /
|
||||||
definitions:
|
definitions:
|
||||||
grammar.Argument:
|
functions.Argument:
|
||||||
properties:
|
properties:
|
||||||
properties:
|
properties:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
@ -8,7 +8,7 @@ definitions:
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
grammar.Function:
|
functions.Function:
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
@ -18,43 +18,43 @@ definitions:
|
|||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
grammar.FunctionName:
|
functions.FunctionName:
|
||||||
properties:
|
properties:
|
||||||
const:
|
const:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
grammar.Item:
|
functions.Item:
|
||||||
properties:
|
properties:
|
||||||
properties:
|
properties:
|
||||||
$ref: '#/definitions/grammar.Properties'
|
$ref: '#/definitions/functions.Properties'
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
grammar.JSONFunctionStructure:
|
functions.JSONFunctionStructure:
|
||||||
properties:
|
properties:
|
||||||
$defs:
|
$defs:
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
type: object
|
type: object
|
||||||
anyOf:
|
anyOf:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/grammar.Item'
|
$ref: '#/definitions/functions.Item'
|
||||||
type: array
|
type: array
|
||||||
oneOf:
|
oneOf:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/grammar.Item'
|
$ref: '#/definitions/functions.Item'
|
||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
grammar.Properties:
|
functions.Properties:
|
||||||
properties:
|
properties:
|
||||||
arguments:
|
arguments:
|
||||||
$ref: '#/definitions/grammar.Argument'
|
$ref: '#/definitions/functions.Argument'
|
||||||
function:
|
function:
|
||||||
$ref: '#/definitions/grammar.FunctionName'
|
$ref: '#/definitions/functions.FunctionName'
|
||||||
type: object
|
type: object
|
||||||
grammar.Tool:
|
functions.Tool:
|
||||||
properties:
|
properties:
|
||||||
function:
|
function:
|
||||||
$ref: '#/definitions/grammar.Function'
|
$ref: '#/definitions/functions.Function'
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
@ -221,13 +221,13 @@ definitions:
|
|||||||
functions:
|
functions:
|
||||||
description: A list of available functions to call
|
description: A list of available functions to call
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/grammar.Function'
|
$ref: '#/definitions/functions.Function'
|
||||||
type: array
|
type: array
|
||||||
grammar:
|
grammar:
|
||||||
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/grammar.JSONFunctionStructure'
|
$ref: '#/definitions/functions.JSONFunctionStructure'
|
||||||
ignore_eos:
|
ignore_eos:
|
||||||
type: boolean
|
type: boolean
|
||||||
input: {}
|
input: {}
|
||||||
@ -297,7 +297,7 @@ definitions:
|
|||||||
tool_choice: {}
|
tool_choice: {}
|
||||||
tools:
|
tools:
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/grammar.Tool'
|
$ref: '#/definitions/functions.Tool'
|
||||||
type: array
|
type: array
|
||||||
top_k:
|
top_k:
|
||||||
type: integer
|
type: integer
|
||||||
|
Loading…
Reference in New Issue
Block a user