Skip to content

Commit

Permalink
feat(swagger): update swagger (#2436)
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <[email protected]>
  • Loading branch information
localai-bot and mudler authored May 30, 2024
1 parent b2fc92d commit 0c40f54
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 35 deletions.
15 changes: 1 addition & 14 deletions swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,14 +476,6 @@ const docTemplate = `{
"Function"
]
},
"schema.ChatCompletionResponseFormat": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"schema.Choice": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -677,12 +669,7 @@ const docTemplate = `{
"type": "number"
},
"response_format": {
"description": "whisper/image",
"allOf": [
{
"$ref": "#/definitions/schema.ChatCompletionResponseFormat"
}
]
"description": "whisper/image"
},
"rope_freq_base": {
"type": "number"
Expand Down
15 changes: 1 addition & 14 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,6 @@
"Function"
]
},
"schema.ChatCompletionResponseFormat": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"schema.Choice": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -670,12 +662,7 @@
"type": "number"
},
"response_format": {
"description": "whisper/image",
"allOf": [
{
"$ref": "#/definitions/schema.ChatCompletionResponseFormat"
}
]
"description": "whisper/image"
},
"rope_freq_base": {
"type": "number"
Expand Down
7 changes: 0 additions & 7 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ definitions:
- CodeInterpreter
- Retrieval
- Function
schema.ChatCompletionResponseFormat:
properties:
type:
type: string
type: object
schema.Choice:
properties:
delta:
Expand Down Expand Up @@ -300,8 +295,6 @@ definitions:
repeat_penalty:
type: number
response_format:
allOf:
- $ref: '#/definitions/schema.ChatCompletionResponseFormat'
description: whisper/image
rope_freq_base:
type: number
Expand Down

0 comments on commit 0c40f54

Please sign in to comment.