Documentation
¶
Index ¶
Constants ¶
View Source
const APIKeyCtxKey = "APIKey"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISvcHandler ¶
type APISvcHandler struct {
// contains filtered or unexported fields
}
func NewAPISvcHandler ¶
func NewAPISvcHandler(spis *spi.SPIRegistry, queries *store.Queries) *APISvcHandler
func (*APISvcHandler) CreateChatCompletion ¶
func (a *APISvcHandler) CreateChatCompletion(c echo.Context) error
func (*APISvcHandler) CreateSpeech ¶
func (a *APISvcHandler) CreateSpeech(c echo.Context) error
func (*APISvcHandler) CreateTranscription ¶
func (a *APISvcHandler) CreateTranscription(c echo.Context) error
type AnthropicApiHandler ¶
type AnthropicApiHandler struct {
// contains filtered or unexported fields
}
func NewAthropicApiHandler ¶
func NewAthropicApiHandler(cfg *config.Config, queries *store.Queries) *AnthropicApiHandler
func (*AnthropicApiHandler) CreateMessages ¶
func (a *AnthropicApiHandler) CreateMessages(c echo.Context) error
type ConsoleHandler ¶
type ConsoleHandler struct {
// contains filtered or unexported fields
}
func NewConsoleHandler ¶
func NewConsoleHandler(queries *store.Queries) *ConsoleHandler
func (ConsoleHandler) CreateKeyPage ¶
func (h ConsoleHandler) CreateKeyPage(c echo.Context) error
func (ConsoleHandler) GenerateKey ¶
func (h ConsoleHandler) GenerateKey(c echo.Context) error
func (ConsoleHandler) HomePage ¶
func (h ConsoleHandler) HomePage(c echo.Context) error
type HomeHandler ¶
type HomeHandler struct {
// contains filtered or unexported fields
}
func NewHomeHandler ¶
func NewHomeHandler(queries *store.Queries) *HomeHandler
func (HomeHandler) HomePage ¶
func (h HomeHandler) HomePage(c echo.Context) error
type MemberHandler ¶
type MemberHandler struct{}
func NewMemberHandler ¶
func NewMemberHandler() *MemberHandler
func (MemberHandler) HomePage ¶
func (h MemberHandler) HomePage(c echo.Context) error
type SpeechRequest ¶
type SpeechRequest struct { Model openai.SpeechModel `json:"model"` Input string `json:"input"` Voice openai.SpeechVoice `json:"voice"` ResponseFormat openai.SpeechResponseFormat `json:"response_format,omitempty"` // Optional, default to mp3 Speed string `json:"speed,omitempty"` // Optional, default to 1.0 }
type SupportHandler ¶
type SupportHandler struct{}
func NewSupportHandler ¶
func NewSupportHandler() *SupportHandler
func (SupportHandler) HomePage ¶
func (h SupportHandler) HomePage(c echo.Context) error
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func NewUserHandler(config *config.Config, queries *store.Queries) *UserHandler
func (UserHandler) DoLogin ¶
func (h UserHandler) DoLogin(c echo.Context) error
func (UserHandler) LoginPage ¶
func (u UserHandler) LoginPage(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.