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": {
"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"
}
}

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": {
"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"
}
}

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:
@ -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: