Skip to content

Commit

Permalink
#45 Updated the openAPI specs
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 14, 2024
1 parent f643af2 commit abf0118
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
13 changes: 9 additions & 4 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ const docTemplate = `{
},
"openai": {
"$ref": "#/definitions/openai.Config"
},
"weight": {
"type": "integer"
}
}
},
Expand Down Expand Up @@ -318,12 +321,14 @@ const docTemplate = `{
"routing.Strategy": {
"type": "string",
"enum": [
"round-robin",
"priority"
"priority",
"weighed-round-robin",
"round-robin"
],
"x-enum-varnames": [
"RoundRobin",
"Priority"
"Priority",
"WeightedRoundRobin",
"RoundRobin"
]
},
"schemas.ChatMessage": {
Expand Down
13 changes: 9 additions & 4 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@
},
"openai": {
"$ref": "#/definitions/openai.Config"
},
"weight": {
"type": "integer"
}
}
},
Expand Down Expand Up @@ -315,12 +318,14 @@
"routing.Strategy": {
"type": "string",
"enum": [
"round-robin",
"priority"
"priority",
"weighed-round-robin",
"round-robin"
],
"x-enum-varnames": [
"RoundRobin",
"Priority"
"Priority",
"WeightedRoundRobin",
"RoundRobin"
]
},
"schemas.ChatMessage": {
Expand Down
8 changes: 6 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ definitions:
type: string
openai:
$ref: '#/definitions/openai.Config'
weight:
type: integer
required:
- id
type: object
Expand Down Expand Up @@ -126,12 +128,14 @@ definitions:
type: object
routing.Strategy:
enum:
- round-robin
- priority
- weighed-round-robin
- round-robin
type: string
x-enum-varnames:
- RoundRobin
- Priority
- WeightedRoundRobin
- RoundRobin
schemas.ChatMessage:
properties:
content:
Expand Down

0 comments on commit abf0118

Please sign in to comment.