Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ManagementRouterGroup = []http.EndPointInterface{ http.NewEndPointBuilder[http.NoBody, http.NoResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.AuthorizeManagementKey()). SetAllowMethods(http.POST). SetRouter(managementRouter.Group("session")). Build(), http.NewEndPointBuilder[*entity.OverviewRequest, *entity.OverviewResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.Overview()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("overview")). Build(), http.NewEndPointBuilder[*entity.ListClientsRequest, *entity.ListClientResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.ListClients()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("clients")). Build(), http.NewEndPointBuilder[*entity.CreateClientRequest, *entity.CreateClientResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.CreateClient()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("clients")). Build(), http.NewEndPointBuilder[*entity.ModifyOpenaiClientBalanceRequest, *entity.ModifyOpenaiClientBalanceResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("client_name"). SetHandlerChain(api.ManagementApi.ModifyClientBalance()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("client/:client_name/balance")). Build(), http.NewEndPointBuilder[*entity.ListClientModelRequest, *entity.ListClientModelResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("client_name"). SetHandlerChain(api.ManagementApi.ListClientModels()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("client/:client_name/models")). Build(), http.NewEndPointBuilder[*entity.CreateClientModelRequest, *entity.CreateClientModelResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("client_name"). SetHandlerChain(api.ManagementApi.CreateClientModels()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("client/:client_name/models")). Build(), http.NewEndPointBuilder[*entity.ListWhisperUsersRequest, *entity.ListWhisperUsersResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.ListWhisperUsers()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("users")). Build(), http.NewEndPointBuilder[*entity.CreateWhisperUserRequest, *entity.CreateWhisperUserResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.CreateWhisperUser()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("users")). Build(), http.NewEndPointBuilder[*entity.BatchModifyWhisperUserBalanceRequest, *entity.BatchModifyWhisperUserBalanceResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.BatchModifyWhisperUserBalance()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("users/balance")). Build(), http.NewEndPointBuilder[*entity.GetWhisperUserRequest, *entity.GetWhisperUserResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("user_id"). SetHandlerChain(api.ManagementApi.GetWhisperUser()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("user/:user_id")). Build(), http.NewEndPointBuilder[*entity.UpdateWhisperUserRequest, *entity.UpdateWhisperUserResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("user_id"). SetHandlerChain(api.ManagementApi.UpdateWhisperUser()). SetAllowMethods(http.PUT). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("user/:user_id")). Build(), http.NewEndPointBuilder[*entity.ListWhisperUserBalanceLogsRequest, *entity.ListWhisperUserBalanceLogsResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("user_id"). SetAdditionalQueries("page", "offset", "start", "end"). SetHandlerChain(api.ManagementApi.ListWhisperUserBalanceLogs()). SetAllowMethods(http.GET). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("user/:user_id/balance_logs")). Build(), http.NewEndPointBuilder[*entity.ModifyWhisperUserBalanceRequest, *entity.ModifyWhisperUserBalanceResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetNecessaryParams("user_id"). SetHandlerChain(api.ManagementApi.ModifyWhisperUserBalance()). SetAllowMethods(http.POST). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("user/:user_id/balance")). Build(), http.NewEndPointBuilder[*entity.ModifyWhisperUserPermissionRequest, *entity.ModifyWhisperUserPermissionResponse](). SetNecessaryHeaders(http.HeaderAuthorization). SetHandlerChain(api.ManagementApi.ModifyWhisperUserPermissions()). SetNecessaryParams("user_id"). SetAllowMethods(http.PUT). SetGinMiddlewares(api.ManagementApi.PreCheckCookie()...). SetRouter(managementRouter.Group("user/:user_id/permissions")). Build(), }
View Source
var OpenAiCompatibleRouterGroup = []http.EndPointInterface{ http.NewEndPointBuilder[*openai.CompleteChatRequestBody, *openai.CompleteChatResponseBody](). SetNecessaryHeaders("Authorization"). SetCustomRender(true). SetHandlerChain(api.CompatibleApi.CompleteChat()). SetAllowMethods(http.POST). SetRouter(compatibleRouter.Group("/chat/completions")). Build(), http.NewEndPointBuilder[*openai.EmbeddingRequestBody, *openai.EmbeddingResponseBody](). SetNecessaryHeaders("Authorization"). SetHandlerChain(api.CompatibleApi.Embedding()). SetAllowMethods(http.POST). SetRouter(compatibleRouter.Group("/embeddings")). Build(), http.NewEndPointBuilder[*openai.ListModelRequest, *openai.ListModelResponseBody](). SetNecessaryHeaders("Authorization"). SetHandlerChain(api.CompatibleApi.ListModel()). SetAllowMethods(http.GET). SetRouter(compatibleRouter.Group("/models")). Build(), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.