Skip to content

Commit

Permalink
chore(swagger): update
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Feb 11, 2025
1 parent 3277f50 commit 089265b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion core/http/endpoints/openai/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down
9 changes: 5 additions & 4 deletions swagger/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,9 @@
"schema.JINARerankRequest": {
"type": "object",
"properties": {
"backend": {
"type": "string"
},
"documents": {
"type": "array",
"items": {
Expand Down Expand Up @@ -1623,7 +1626,6 @@
"type": "integer"
},
"model": {
"description": "Also part of the OpenAI official spec",
"type": "string"
},
"model_base_name": {
Expand Down Expand Up @@ -1829,7 +1831,6 @@
"type": "string"
},
"model": {
"description": "model name or full path",
"type": "string"
},
"response_format": {
Expand Down Expand Up @@ -1893,7 +1894,6 @@
}
},
"model": {
"description": "model name or full path",
"type": "string"
}
}
Expand Down
5 changes: 2 additions & 3 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ definitions:
type: object
schema.JINARerankRequest:
properties:
backend:
type: string
documents:
items:
type: string
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -739,7 +739,6 @@ definitions:
type: number
type: array
model:
description: model name or full path
type: string
type: object
info:
Expand Down

0 comments on commit 089265b

Please sign in to comment.