handler

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminHandler

type AdminHandler struct {
	// contains filtered or unexported fields
}

func NewAdminHandler

func NewAdminHandler(provider *config.Provider) *AdminHandler

func (*AdminHandler) RegisterRoutes

func (a *AdminHandler) RegisterRoutes(r *gin.RouterGroup)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(provider *config.Provider, usageStore *store.UsageStore, r router.Router, llmLogger *slog.Logger) *Handler

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(r *gin.Engine)

RegisterRoutes registers all API endpoints.

type ModelInfo added in v0.1.7

type ModelInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

ModelInfo represents a single model returned by the fetch-models endpoint.

Jump to

Keyboard shortcuts

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