mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-05 18:18:20 +00:00
chore(swagger): update (#4805)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
3277f5095d
commit
28b10e8804
@ -27,7 +27,6 @@ import (
|
|||||||
// @Param request body schema.OpenAIRequest true "query params"
|
// @Param request body schema.OpenAIRequest true "query params"
|
||||||
// @Success 200 {object} schema.OpenAIResponse "Response"
|
// @Success 200 {object} schema.OpenAIResponse "Response"
|
||||||
// @Router /v1/completions [post]
|
// @Router /v1/completions [post]
|
||||||
|
|
||||||
func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, evaluator *templates.Evaluator, appConfig *config.ApplicationConfig) func(c *fiber.Ctx) error {
|
func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, evaluator *templates.Evaluator, appConfig *config.ApplicationConfig) func(c *fiber.Ctx) error {
|
||||||
created := int(time.Now().Unix())
|
created := int(time.Now().Unix())
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// Package swagger Code generated by swaggo/swag. DO NOT EDIT
|
// Code generated by swaggo/swag. DO NOT EDIT.
|
||||||
|
|
||||||
package swagger
|
package swagger
|
||||||
|
|
||||||
import "github.com/swaggo/swag"
|
import "github.com/swaggo/swag"
|
||||||
@ -1421,6 +1422,9 @@ const docTemplate = `{
|
|||||||
"schema.JINARerankRequest": {
|
"schema.JINARerankRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"backend": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"documents": {
|
"documents": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -1630,7 +1634,6 @@ const docTemplate = `{
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "Also part of the OpenAI official spec",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"model_base_name": {
|
"model_base_name": {
|
||||||
@ -1836,7 +1839,6 @@ const docTemplate = `{
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "model name or full path",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"response_format": {
|
"response_format": {
|
||||||
@ -1900,7 +1902,6 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "model name or full path",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1414,6 +1414,9 @@
|
|||||||
"schema.JINARerankRequest": {
|
"schema.JINARerankRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"backend": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"documents": {
|
"documents": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -1623,7 +1626,6 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "Also part of the OpenAI official spec",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"model_base_name": {
|
"model_base_name": {
|
||||||
@ -1829,7 +1831,6 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "model name or full path",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"response_format": {
|
"response_format": {
|
||||||
@ -1893,7 +1894,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
"description": "model name or full path",
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -412,6 +412,8 @@ definitions:
|
|||||||
type: object
|
type: object
|
||||||
schema.JINARerankRequest:
|
schema.JINARerankRequest:
|
||||||
properties:
|
properties:
|
||||||
|
backend:
|
||||||
|
type: string
|
||||||
documents:
|
documents:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
@ -551,7 +553,6 @@ definitions:
|
|||||||
description: Image (not supported by OpenAI)
|
description: Image (not supported by OpenAI)
|
||||||
type: integer
|
type: integer
|
||||||
model:
|
model:
|
||||||
description: Also part of the OpenAI official spec
|
|
||||||
type: string
|
type: string
|
||||||
model_base_name:
|
model_base_name:
|
||||||
description: AutoGPTQ
|
description: AutoGPTQ
|
||||||
@ -696,7 +697,6 @@ definitions:
|
|||||||
description: (optional) language to use with TTS model
|
description: (optional) language to use with TTS model
|
||||||
type: string
|
type: string
|
||||||
model:
|
model:
|
||||||
description: model name or full path
|
|
||||||
type: string
|
type: string
|
||||||
response_format:
|
response_format:
|
||||||
description: (optional) output format
|
description: (optional) output format
|
||||||
@ -739,7 +739,6 @@ definitions:
|
|||||||
type: number
|
type: number
|
||||||
type: array
|
type: array
|
||||||
model:
|
model:
|
||||||
description: model name or full path
|
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
info:
|
info:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user