backendapi

package
v0.28.7 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 12 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, stateService stateservice.Service)

func AddStateRoutes

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

Types

type ObservedModel

type ObservedModel struct {
	ID            string `json:"id" example:"mistral:instruct"`
	Model         string `json:"model" example:"mistral:instruct"`
	ContextLength int    `json:"contextLength" example:"8192"`
	CanChat       bool   `json:"canChat" example:"true"`
	CanEmbed      bool   `json:"canEmbed" example:"false"`
	CanPrompt     bool   `json:"canPrompt" example:"true"`
	CanStream     bool   `json:"canStream" example:"true"`
}

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