Skip to content

Commit d0a669a

Browse files
committed
chore: update swagger
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent da3b085 commit d0a669a

File tree

4 files changed

+746
-969
lines changed

4 files changed

+746
-969
lines changed

core/http/endpoints/localai/backend.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func CreateBackendEndpointService(galleries []config.Gallery, backendPath string
3434

3535
// GetOpStatusEndpoint returns the job status
3636
// @Summary Returns the job status
37-
// @Success 200 {object} services.BackendOpStatus "Response"
37+
// @Success 200 {object} services.GalleryOpStatus "Response"
3838
// @Router /backends/jobs/{uuid} [get]
3939
func (mgs *BackendEndpointService) GetOpStatusEndpoint() func(c *fiber.Ctx) error {
4040
return func(c *fiber.Ctx) error {
@@ -48,7 +48,7 @@ func (mgs *BackendEndpointService) GetOpStatusEndpoint() func(c *fiber.Ctx) erro
4848

4949
// GetAllStatusEndpoint returns all the jobs status progress
5050
// @Summary Returns all the jobs status progress
51-
// @Success 200 {object} map[string]services.BackendOpStatus "Response"
51+
// @Success 200 {object} map[string]services.GalleryOpStatus "Response"
5252
// @Router /backends/jobs [get]
5353
func (mgs *BackendEndpointService) GetAllStatusEndpoint() func(c *fiber.Ctx) error {
5454
return func(c *fiber.Ctx) error {
@@ -58,7 +58,7 @@ func (mgs *BackendEndpointService) GetAllStatusEndpoint() func(c *fiber.Ctx) err
5858

5959
// ApplyBackendEndpoint installs a new backend to a LocalAI instance
6060
// @Summary Install backends to LocalAI.
61-
// @Param request body BackendModel true "query params"
61+
// @Param request body GalleryBackend true "query params"
6262
// @Success 200 {object} schema.BackendResponse "Response"
6363
// @Router /backends/apply [post]
6464
func (mgs *BackendEndpointService) ApplyBackendEndpoint() func(c *fiber.Ctx) error {

0 commit comments

Comments
 (0)