backendapi

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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