backendapi

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBackendRoutes

func AddBackendRoutes(mux *http.ServeMux, backendService backendservice.Service, stateService stateservice.Service)

func AddModelRoutes

func AddModelRoutes(mux *http.ServeMux, modelService modelservice.Service, dwService downloadservice.Service)

func AddQueueRoutes

func AddQueueRoutes(mux *http.ServeMux, dwService downloadservice.Service)

func AddStateRoutes added in v0.0.5

func AddStateRoutes(mux *http.ServeMux, stateService stateservice.Service)

Types

type ListResponse added in v0.0.17

type ListResponse struct {
	Object string        `json:"object" example:"list"`
	Data   []OpenAIModel `json:"data"`
}

type OpenAIModel added in v0.0.17

type OpenAIModel struct {
	ID      string `json:"id" example:"mistral:latest"`
	Object  string `json:"object" example:"model"`
	Created int64  `json:"created" example:"1717020800"`
	OwnedBy string `json:"owned_by" example:"system"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL