diff --git a/core/http/endpoints/openai/completion.go b/core/http/endpoints/openai/completion.go index 5c685b97..79da6cd6 100644 --- a/core/http/endpoints/openai/completion.go +++ b/core/http/endpoints/openai/completion.go @@ -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()) diff --git a/swagger/docs.go b/swagger/docs.go index f1050e85..3994d182 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -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" } } diff --git a/swagger/swagger.json b/swagger/swagger.json index b2d02ea2..163539a5 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -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" } } diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index e7b9e625..cfee57a9 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -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: