feat(swagger): update swagger

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
mudler 2025-02-10 20:02:59 +00:00 committed by github-actions[bot]
parent 49df492268
commit 7c7477e196
3 changed files with 8 additions and 72 deletions

View file

@ -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": { "/v1/edits": {
"post": { "post": {
"summary": "OpenAI edit endpoint", "summary": "OpenAI edit endpoint",
@ -1421,6 +1397,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 +1609,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 +1814,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 +1877,6 @@ const docTemplate = `{
} }
}, },
"model": { "model": {
"description": "model name or full path",
"type": "string" "type": "string"
} }
} }

View file

@ -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": { "/v1/edits": {
"post": { "post": {
"summary": "OpenAI edit endpoint", "summary": "OpenAI edit endpoint",
@ -1414,6 +1390,9 @@
"schema.JINARerankRequest": { "schema.JINARerankRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
"backend": {
"type": "string"
},
"documents": { "documents": {
"type": "array", "type": "array",
"items": { "items": {
@ -1623,7 +1602,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 +1807,6 @@
"type": "string" "type": "string"
}, },
"model": { "model": {
"description": "model name or full path",
"type": "string" "type": "string"
}, },
"response_format": { "response_format": {
@ -1893,7 +1870,6 @@
} }
}, },
"model": { "model": {
"description": "model name or full path",
"type": "string" "type": "string"
} }
} }

View file

@ -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:
@ -1059,21 +1058,6 @@ paths:
schema: schema:
$ref: '#/definitions/schema.OpenAIResponse' $ref: '#/definitions/schema.OpenAIResponse'
summary: Generate a chat completions for a given prompt and model. 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: /v1/edits:
post: post:
parameters: parameters: