chore(swagger): update (#4805)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2025-02-11 09:51:01 +01:00 committed by GitHub
parent 3277f5095d
commit 28b10e8804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 11 deletions

View File

@ -27,7 +27,6 @@ import (
// @Param request body schema.OpenAIRequest true "query params"
// @Success 200 {object} schema.OpenAIResponse "Response"
// @Router /v1/completions [post]
func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, evaluator *templates.Evaluator, appConfig *config.ApplicationConfig) func(c *fiber.Ctx) error {
created := int(time.Now().Unix())

View File

@ -1,4 +1,5 @@
// Package swagger Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.
package swagger
import "github.com/swaggo/swag"
@ -1421,6 +1422,9 @@ const docTemplate = `{
"schema.JINARerankRequest": {
"type": "object",
"properties": {
"backend": {
"type": "string"
},
"documents": {
"type": "array",
"items": {
@ -1630,7 +1634,6 @@ const docTemplate = `{
"type": "integer"
},
"model": {
"description": "Also part of the OpenAI official spec",
"type": "string"
},
"model_base_name": {
@ -1836,7 +1839,6 @@ const docTemplate = `{
"type": "string"
},
"model": {
"description": "model name or full path",
"type": "string"
},
"response_format": {
@ -1900,7 +1902,6 @@ const docTemplate = `{
}
},
"model": {
"description": "model name or full path",
"type": "string"
}
}

View File

@ -1414,6 +1414,9 @@
"schema.JINARerankRequest": {
"type": "object",
"properties": {
"backend": {
"type": "string"
},
"documents": {
"type": "array",
"items": {
@ -1623,7 +1626,6 @@
"type": "integer"
},
"model": {
"description": "Also part of the OpenAI official spec",
"type": "string"
},
"model_base_name": {
@ -1829,7 +1831,6 @@
"type": "string"
},
"model": {
"description": "model name or full path",
"type": "string"
},
"response_format": {
@ -1893,7 +1894,6 @@
}
},
"model": {
"description": "model name or full path",
"type": "string"
}
}

View File

@ -412,6 +412,8 @@ definitions:
type: object
schema.JINARerankRequest:
properties:
backend:
type: string
documents:
items:
type: string
@ -551,7 +553,6 @@ definitions:
description: Image (not supported by OpenAI)
type: integer
model:
description: Also part of the OpenAI official spec
type: string
model_base_name:
description: AutoGPTQ
@ -696,7 +697,6 @@ definitions:
description: (optional) language to use with TTS model
type: string
model:
description: model name or full path
type: string
response_format:
description: (optional) output format
@ -739,7 +739,6 @@ definitions:
type: number
type: array
model:
description: model name or full path
type: string
type: object
info: