From 7c7477e19607768aed3ebe5b9ef73ac0f083567b Mon Sep 17 00:00:00 2001 From: mudler <2420543+mudler@users.noreply.github.com> Date: Mon, 10 Feb 2025 20:02:59 +0000 Subject: [PATCH] feat(swagger): update swagger Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- swagger/docs.go | 30 +++--------------------------- swagger/swagger.json | 30 +++--------------------------- swagger/swagger.yaml | 20 ++------------------ 3 files changed, 8 insertions(+), 72 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index f1050e85..aaf312b7 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -505,30 +505,6 @@ const docTemplate = `{ } } }, - "/v1/completions": { - "post": { - "summary": "Generate completions for a given prompt and model.", - "parameters": [ - { - "description": "query params", - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/schema.OpenAIRequest" - } - } - ], - "responses": { - "200": { - "description": "Response", - "schema": { - "$ref": "#/definitions/schema.OpenAIResponse" - } - } - } - } - }, "/v1/edits": { "post": { "summary": "OpenAI edit endpoint", @@ -1421,6 +1397,9 @@ const docTemplate = `{ "schema.JINARerankRequest": { "type": "object", "properties": { + "backend": { + "type": "string" + }, "documents": { "type": "array", "items": { @@ -1630,7 +1609,6 @@ const docTemplate = `{ "type": "integer" }, "model": { - "description": "Also part of the OpenAI official spec", "type": "string" }, "model_base_name": { @@ -1836,7 +1814,6 @@ const docTemplate = `{ "type": "string" }, "model": { - "description": "model name or full path", "type": "string" }, "response_format": { @@ -1900,7 +1877,6 @@ const docTemplate = `{ } }, "model": { - "description": "model name or full path", "type": "string" } } diff --git a/swagger/swagger.json b/swagger/swagger.json index b2d02ea2..5e59edef 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -498,30 +498,6 @@ } } }, - "/v1/completions": { - "post": { - "summary": "Generate completions for a given prompt and model.", - "parameters": [ - { - "description": "query params", - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/schema.OpenAIRequest" - } - } - ], - "responses": { - "200": { - "description": "Response", - "schema": { - "$ref": "#/definitions/schema.OpenAIResponse" - } - } - } - } - }, "/v1/edits": { "post": { "summary": "OpenAI edit endpoint", @@ -1414,6 +1390,9 @@ "schema.JINARerankRequest": { "type": "object", "properties": { + "backend": { + "type": "string" + }, "documents": { "type": "array", "items": { @@ -1623,7 +1602,6 @@ "type": "integer" }, "model": { - "description": "Also part of the OpenAI official spec", "type": "string" }, "model_base_name": { @@ -1829,7 +1807,6 @@ "type": "string" }, "model": { - "description": "model name or full path", "type": "string" }, "response_format": { @@ -1893,7 +1870,6 @@ } }, "model": { - "description": "model name or full path", "type": "string" } } diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index e7b9e625..4986aeee 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: @@ -1059,21 +1058,6 @@ paths: schema: $ref: '#/definitions/schema.OpenAIResponse' summary: Generate a chat completions for a given prompt and model. - /v1/completions: - post: - parameters: - - description: query params - in: body - name: request - required: true - schema: - $ref: '#/definitions/schema.OpenAIRequest' - responses: - "200": - description: Response - schema: - $ref: '#/definitions/schema.OpenAIResponse' - summary: Generate completions for a given prompt and model. /v1/edits: post: parameters: