Documentation
¶
Index ¶
Constants ¶
View Source
const ( PathChat = "/v1/chat/completions" PathMessages = "/v1/messages" PathResponses = "/v1/responses" )
Upstream API paths. BuildUpstreamURL handles /v1 deduplication so base_url can be configured with or without /v1.
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 (*Handler) RegisterRoutes ¶
RegisterRoutes registers all API endpoints.
Click to show internal directories.
Click to hide internal directories.