Versions in this module Expand all Collapse all v0 v0.0.1 Feb 6, 2025 Changes in this version + func AddChannel(c *gin.Context) + func AddRedemption(c *gin.Context) + func AddToken(c *gin.Context) + func AdminTopUp(c *gin.Context) + func AutomaticallyTestChannels(frequency int) + func AutomaticallyUpdateChannels(frequency int) + func CreateUser(c *gin.Context) + func DashboardListModels(c *gin.Context) + func DeleteChannel(c *gin.Context) + func DeleteDisabledChannel(c *gin.Context) + func DeleteHistoryLogs(c *gin.Context) + func DeleteRedemption(c *gin.Context) + func DeleteSelf(c *gin.Context) + func DeleteToken(c *gin.Context) + func DeleteUser(c *gin.Context) + func EmailBind(c *gin.Context) + func GenerateAccessToken(c *gin.Context) + func GetAbout(c *gin.Context) + func GetAffCode(c *gin.Context) + func GetAllChannels(c *gin.Context) + func GetAllLogs(c *gin.Context) + func GetAllRedemptions(c *gin.Context) + func GetAllTokens(c *gin.Context) + func GetAllUsers(c *gin.Context) + func GetAuthHeader(token string) http.Header + func GetChannel(c *gin.Context) + func GetGroups(c *gin.Context) + func GetHomePageContent(c *gin.Context) + func GetLogsSelfStat(c *gin.Context) + func GetLogsStat(c *gin.Context) + func GetNotice(c *gin.Context) + func GetOptions(c *gin.Context) + func GetRedemption(c *gin.Context) + func GetResponseBody(method, url string, channel *model.Channel, headers http.Header) ([]byte, error) + func GetSelf(c *gin.Context) + func GetStatus(c *gin.Context) + func GetSubscription(c *gin.Context) + func GetToken(c *gin.Context) + func GetTokenStatus(c *gin.Context) + func GetUsage(c *gin.Context) + func GetUser(c *gin.Context) + func GetUserAvailableModels(c *gin.Context) + func GetUserDashboard(c *gin.Context) + func GetUserLogs(c *gin.Context) + func ListAllModels(c *gin.Context) + func ListModels(c *gin.Context) + func Login(c *gin.Context) + func Logout(c *gin.Context) + func ManageUser(c *gin.Context) + func Register(c *gin.Context) + func Relay(c *gin.Context) + func RelayNotFound(c *gin.Context) + func RelayNotImplemented(c *gin.Context) + func ResetPassword(c *gin.Context) + func RetrieveModel(c *gin.Context) + func SearchAllLogs(c *gin.Context) + func SearchChannels(c *gin.Context) + func SearchRedemptions(c *gin.Context) + func SearchTokens(c *gin.Context) + func SearchUserLogs(c *gin.Context) + func SearchUsers(c *gin.Context) + func SendEmailVerification(c *gin.Context) + func SendPasswordResetEmail(c *gin.Context) + func SetupLogin(user *model.User, c *gin.Context) + func TestChannel(c *gin.Context) + func TestChannels(c *gin.Context) + func TopUp(c *gin.Context) + func UpdateAllChannelsBalance(c *gin.Context) + func UpdateChannel(c *gin.Context) + func UpdateChannelBalance(c *gin.Context) + func UpdateOption(c *gin.Context) + func UpdateRedemption(c *gin.Context) + func UpdateSelf(c *gin.Context) + func UpdateToken(c *gin.Context) + func UpdateUser(c *gin.Context) + type AIProxyUserOverviewResponse struct + Data struct{ ... } + ErrorCode int + Message string + Success bool + type APGC2DGPTUsageResponse struct + Object string + TotalAvailable float64 + TotalGranted float64 + TotalUsed float64 + type API2GPTUsageResponse struct + Object string + TotalGranted float64 + TotalRemaining float64 + TotalUsed float64 + type DeepSeekUsageResponse struct + BalanceInfos []struct{ ... } + IsAvailable bool + type LoginRequest struct + Password string + Username string + type ManageRequest struct + Action string + Username string + type OpenAICreditGrants struct + Object string + TotalAvailable float64 + TotalGranted float64 + TotalUsed float64 + type OpenAIModelPermission struct + AllowCreateEngine bool + AllowFineTuning bool + AllowLogprobs bool + AllowSampling bool + AllowSearchIndices bool + AllowView bool + Created int + Group *string + Id string + IsBlocking bool + Object string + Organization string + type OpenAIModels struct + Created int + Id string + Object string + OwnedBy string + Parent *string + Permission []OpenAIModelPermission + Root string + type OpenAISBUsageResponse struct + Data ... + Msg string + type OpenAISubscriptionResponse struct + AccessUntil int64 + HardLimitUSD float64 + HasPaymentMethod bool + Object string + SoftLimitUSD float64 + SystemHardLimitUSD float64 + type OpenAIUsageDailyCost struct + LineItems []struct{ ... } + Timestamp float64 + type OpenAIUsageResponse struct + Object string + TotalUsage float64 + type PasswordResetRequest struct + Email string + Token string + type SiliconFlowUsageResponse struct + Code int + Data struct{ ... } + Message string + Status bool