Documentation ¶
Index ¶
- 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
- type APGC2DGPTUsageResponse
- type API2GPTUsageResponse
- type LoginRequest
- type ManageRequest
- type OpenAICreditGrants
- type OpenAIModelPermission
- type OpenAIModels
- type OpenAISBUsageResponse
- type OpenAISubscriptionResponse
- type OpenAIUsageDailyCost
- type OpenAIUsageResponse
- type PasswordResetRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChannel ¶
func AddRedemption ¶
func AdminTopUp ¶
func AutomaticallyTestChannels ¶
func AutomaticallyTestChannels(frequency int)
func AutomaticallyUpdateChannels ¶
func AutomaticallyUpdateChannels(frequency int)
func CreateUser ¶
func DashboardListModels ¶
func DeleteChannel ¶
func DeleteDisabledChannel ¶
func DeleteHistoryLogs ¶
func DeleteRedemption ¶
func DeleteSelf ¶
func DeleteToken ¶
func DeleteUser ¶
func GenerateAccessToken ¶
func GetAffCode ¶
func GetAllChannels ¶
func GetAllLogs ¶
func GetAllRedemptions ¶
func GetAllTokens ¶
func GetAllUsers ¶
func GetChannel ¶
func GetHomePageContent ¶
func GetLogsSelfStat ¶
func GetLogsStat ¶
func GetOptions ¶
func GetRedemption ¶
func GetResponseBody ¶
func GetSubscription ¶
func GetTokenStatus ¶
func GetUserAvailableModels ¶
func GetUserDashboard ¶
func GetUserLogs ¶
func ListAllModels ¶
func ListModels ¶
func RelayNotFound ¶
func RelayNotImplemented ¶
func ResetPassword ¶
func RetrieveModel ¶
func SearchAllLogs ¶
func SearchChannels ¶
func SearchRedemptions ¶
func SearchTokens ¶
func SearchUserLogs ¶
func SearchUsers ¶
func SendEmailVerification ¶
func SendPasswordResetEmail ¶
func SetupLogin ¶
setup session & cookies and then return user info
func TestChannel ¶
func TestChannels ¶
func UpdateChannel ¶
func UpdateChannelBalance ¶
func UpdateOption ¶
func UpdateRedemption ¶
func UpdateSelf ¶
func UpdateToken ¶
func UpdateUser ¶
Types ¶
type APGC2DGPTUsageResponse ¶
type API2GPTUsageResponse ¶
type LoginRequest ¶
type ManageRequest ¶
type OpenAICreditGrants ¶
type OpenAIModelPermission ¶
type OpenAIModelPermission struct { Id string `json:"id"` Object string `json:"object"` Created int `json:"created"` AllowCreateEngine bool `json:"allow_create_engine"` AllowSampling bool `json:"allow_sampling"` AllowLogprobs bool `json:"allow_logprobs"` AllowSearchIndices bool `json:"allow_search_indices"` AllowView bool `json:"allow_view"` AllowFineTuning bool `json:"allow_fine_tuning"` Organization string `json:"organization"` Group *string `json:"group"` IsBlocking bool `json:"is_blocking"` }
type OpenAIModels ¶
type OpenAISBUsageResponse ¶
type OpenAISubscriptionResponse ¶
type OpenAISubscriptionResponse struct { Object string `json:"object"` HasPaymentMethod bool `json:"has_payment_method"` SoftLimitUSD float64 `json:"soft_limit_usd"` HardLimitUSD float64 `json:"hard_limit_usd"` SystemHardLimitUSD float64 `json:"system_hard_limit_usd"` AccessUntil int64 `json:"access_until"` }
type OpenAIUsageDailyCost ¶
type OpenAIUsageResponse ¶
type PasswordResetRequest ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.