Skip to content

Commit 28b10e8

Browse files
authored
chore(swagger): update (#4805)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 3277f50 commit 28b10e8

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

core/http/endpoints/openai/completion.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
// @Param request body schema.OpenAIRequest true "query params"
2828
// @Success 200 {object} schema.OpenAIResponse "Response"
2929
// @Router /v1/completions [post]
30-
3130
func CompletionEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, evaluator *templates.Evaluator, appConfig *config.ApplicationConfig) func(c *fiber.Ctx) error {
3231
created := int(time.Now().Unix())
3332

swagger/docs.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swagger/swagger.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,9 @@
14141414
"schema.JINARerankRequest": {
14151415
"type": "object",
14161416
"properties": {
1417+
"backend": {
1418+
"type": "string"
1419+
},
14171420
"documents": {
14181421
"type": "array",
14191422
"items": {
@@ -1623,7 +1626,6 @@
16231626
"type": "integer"
16241627
},
16251628
"model": {
1626-
"description": "Also part of the OpenAI official spec",
16271629
"type": "string"
16281630
},
16291631
"model_base_name": {
@@ -1829,7 +1831,6 @@
18291831
"type": "string"
18301832
},
18311833
"model": {
1832-
"description": "model name or full path",
18331834
"type": "string"
18341835
},
18351836
"response_format": {
@@ -1893,7 +1894,6 @@
18931894
}
18941895
},
18951896
"model": {
1896-
"description": "model name or full path",
18971897
"type": "string"
18981898
}
18991899
}

swagger/swagger.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ definitions:
412412
type: object
413413
schema.JINARerankRequest:
414414
properties:
415+
backend:
416+
type: string
415417
documents:
416418
items:
417419
type: string
@@ -551,7 +553,6 @@ definitions:
551553
description: Image (not supported by OpenAI)
552554
type: integer
553555
model:
554-
description: Also part of the OpenAI official spec
555556
type: string
556557
model_base_name:
557558
description: AutoGPTQ
@@ -696,7 +697,6 @@ definitions:
696697
description: (optional) language to use with TTS model
697698
type: string
698699
model:
699-
description: model name or full path
700700
type: string
701701
response_format:
702702
description: (optional) output format
@@ -739,7 +739,6 @@ definitions:
739739
type: number
740740
type: array
741741
model:
742-
description: model name or full path
743742
type: string
744743
type: object
745744
info:

0 commit comments

Comments
 (0)