backendapi

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 14 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

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

Types

type OpenAICompatibleModelList

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

type OpenAIModel

type OpenAIModel struct {
	ID      string `json:"id" example:"mistral:latest"`
	Object  string `json:"object" example:"mistral:latest"`
	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