MCPcopy Create free account

hub / github.com/alove77580/ai-getaway / functions

Functions595 in github.com/alove77580/ai-getaway

↓ 1 callersMethodcompleteOAuth
(c *gin.Context, state oauthStatePayload, profile oauthProfile, setting model.SystemSetting)
controller/oauth.go:183
↓ 1 callersFunctioncompletePaidBalanceRechargeOrder
(db *gorm.DB, order *model.Order, payment *epayPaymentResult, approvedByID *uint)
controller/order.go:847
↓ 1 callersMethodconsume
(chunk []byte)
upstream/proxy.go:645
↓ 1 callersFunctioncontains
(items []string, needle string)
config/config.go:190
↓ 1 callersFunctioncors
(cfg config.Config)
router/router.go:253
↓ 1 callersMethoddedupeUserAPIKeys
(userID uint)
controller/api_key.go:58
↓ 1 callersFunctiondefaultInstanceID
()
config/config.go:161
↓ 1 callersFunctiondefaultTemplateBody
(templateType string)
service/mailer.go:496
↓ 1 callersFunctiondelay
(ms)
frontend/src/stores/auth.js:69
↓ 1 callersFunctiondeleteAPIKeyWithRelatedData
(db *gorm.DB, keyID uint)
controller/api_key.go:410
↓ 1 callersMethoddeleteUserWithRelatedData
(userID uint)
controller/admin.go:898
↓ 1 callersFunctiondropLegacyQuotaColumns
(db *gorm.DB)
database/database.go:312
↓ 1 callersFunctionemailFromIDToken
(idToken string)
service/openai_oauth.go:562
↓ 1 callersFunctionemailTemplateVariables
(input EmailTemplateInput, extra map[string]string)
service/mailer.go:433
↓ 1 callersFunctionemailTemplateVariablesHelp
()
controller/email_template.go:80
↓ 1 callersFunctionensureAccessSourceColumns
(db *gorm.DB)
database/database.go:143
↓ 1 callersFunctionensureBalanceColumns
(db *gorm.DB)
database/database.go:94
↓ 1 callersFunctionensureOrderPlanIDNullable
(db *gorm.DB)
database/database.go:130
↓ 1 callersFunctionepayPaymentResultFromQuery
(result map[string]interface{})
controller/order.go:1173
↓ 1 callersFunctionepayQueryURL
(rawURL string)
controller/order.go:1066
↓ 1 callersFunctionestimatedTokensFromBytes
(value int64)
upstream/proxy.go:511
↓ 1 callersFunctionexchangeOAuthCode
(provider oauthProviderConfig, code, redirectURI string)
controller/oauth.go:391
↓ 1 callersFunctionextractOAuthCodeAndState
(value string)
service/openai_oauth.go:549
↓ 1 callersFunctionfallbackRatesUSD
(modelName string)
service/model_pricing.go:434
↓ 1 callersFunctionfetchGitHubPrimaryEmail
(token string)
controller/oauth.go:453
↓ 1 callersFunctionfetchGitHubProfile
(provider oauthProviderConfig, token string)
controller/oauth.go:420
↓ 1 callersFunctionfetchGoogleProfile
(provider oauthProviderConfig, token string)
controller/oauth.go:478
↓ 1 callersFunctionfetchOAuthProfile
(provider oauthProviderConfig, code, redirectURI string)
controller/oauth.go:380
↓ 1 callersFunctionfillStreamUsage
(db *gorm.DB, log *model.APILog, body []byte, groupMultipliers ...any)
upstream/proxy.go:679
↓ 1 callersFunctionfindOfficialModelPrice
(modelName string)
service/model_pricing.go:359
↓ 1 callersFunctionfirstNonEmpty
(values ...string)
upstream/proxy.go:749
↓ 1 callersFunctionformatLatency
(latencyMs int64)
controller/endpoint_speed.go:113
↓ 1 callersFunctiongenerateRedeemCode
()
controller/admin.go:2008
↓ 1 callersFunctiongetEnvDuration
(key string, fallback time.Duration)
config/config.go:134
↓ 1 callersFunctiongetMeWithRetry
()
frontend/src/stores/auth.js:52
↓ 1 callersFunctionhydrateLotteryPlanForPublic
(plan *model.Plan)
controller/admin.go:1186
↓ 1 callersMethodisConfiguredEndpoint
(target string)
controller/endpoint_speed.go:66
↓ 1 callersFunctionisDuplicateFingerprintError
(err error)
service/mailer.go:425
↓ 1 callersFunctionisEventStream
(resp *http.Response)
upstream/proxy.go:724
↓ 1 callersFunctionisRecoverableMeError
(err)
frontend/src/stores/auth.js:62
↓ 1 callersFunctionjoinClusterURL
(base string, pathWithQuery string)
controller/load_balancer.go:116
↓ 1 callersFunctionjoinNodeURL
(base string, path string)
service/cluster_registry.go:244
↓ 1 callersFunctionloadBalanceBillingGroupUpstream
(db *gorm.DB, groupID uint, protocol string)
upstream/proxy.go:264
↓ 1 callersFunctionloadDotEnv
(path string)
config/config.go:199
↓ 1 callersFunctionloadUpstreamGroupMultipliers
(db *gorm.DB, upstream model.UpstreamAccount)
upstream/proxy.go:305
↓ 1 callersFunctionlocalizeMessage
(message string)
response/response.go:30
↓ 1 callersFunctionlocalizeValidationMessage
(message string)
response/response.go:151
↓ 1 callersFunctionmapChannelMonitorRecordBrief
(record model.ChannelMonitorRecord)
controller/admin.go:2265
↓ 1 callersMethodmapPublicChannelStatus
(monitor model.ChannelMonitor, cutoff time.Time)
controller/channel_status.go:69
↓ 1 callersFunctionmarkQuotaCapped
(log *model.APILog)
service/quota.go:573
↓ 1 callersFunctionmarkdownToHtml
(source)
frontend/src/utils/markdown.js:15
↓ 1 callersFunctionmatchedGroupMultiplier
(modelName string, groupMultipliers map[string]float64)
service/model_pricing.go:380
↓ 1 callersFunctionmigrateLegacyAPIEndpoint
(db *gorm.DB)
controller/settings.go:331
↓ 1 callersFunctionnewProxyTransport
(upstreamTimeout time.Duration)
upstream/proxy.go:326
↓ 1 callersMethodnormalize
()
service/openai_oauth.go:421
↓ 1 callersFunctionnormalizeAPIEndpointsJSON
(value string)
controller/settings.go:509
↓ 1 callersFunctionnormalizeAccessSource
(source string)
service/quota.go:478
↓ 1 callersFunctionnormalizeEpaySubmitURL
(rawURL string)
controller/order.go:1050
↓ 1 callersFunctionnormalizeGroupMultipliers
(values any)
service/model_pricing.go:250
↓ 1 callersFunctionnormalizeMySQLDSN
(dsn string)
config/config.go:90
↓ 1 callersFunctionnormalizeRedeemCode
(value string)
controller/admin.go:2022
↓ 1 callersFunctionnormalizeRemindDays
(value int)
controller/settings.go:474
↓ 1 callersFunctionnormalizedPlanModelNamesJSON
(values []string)
controller/admin.go:1939
↓ 1 callersFunctionoauthProviderLabel
(provider string)
controller/oauth.go:604
↓ 1 callersFunctionoauthUsername
(profile oauthProfile)
controller/oauth.go:615
↓ 1 callersFunctionorderAccessTypeFromString
(value string)
controller/admin.go:2166
↓ 1 callersFunctionorderPaymentName
(order model.Order)
controller/order.go:1029
↓ 1 callersFunctionoutputLimitField
(path string, payload map[string]any)
upstream/proxy.go:471
↓ 1 callersFunctionparseLogLimit
(value string)
controller/load_balancer.go:105
↓ 1 callersFunctionparseOpenAICodexRateLimitHeaders
(headers http.Header)
service/openai_oauth.go:367
↓ 1 callersFunctionparseStatusRangeDays
(value string)
controller/channel_status.go:120
↓ 1 callersFunctionparseValidationError
(message string)
response/response.go:188
↓ 1 callersFunctionpendingPaymentExpiresAt
(order model.Order)
controller/order.go:750
↓ 1 callersFunctionprepareAccessSourceMigration
(db *gorm.DB)
database/database.go:83
↓ 1 callersFunctionprobeClusterNode
(ctx context.Context, node *ClusterNode)
service/cluster_registry.go:181
↓ 1 callersFunctionpruneChannelMonitorRecords
(db *gorm.DB)
service/channel_monitor.go:150
↓ 1 callersFunctionpublicOAuthProviders
(setting model.SystemSetting)
controller/settings.go:463
↓ 1 callersFunctionqueryEpayPaid
(c *gin.Context, db *gorm.DB, setting model.SystemSetting, order model.Order)
controller/order.go:1085
↓ 1 callersFunctionrandomCode
()
controller/auth.go:395
↓ 1 callersFunctionrandomInt
(min, max int)
controller/captcha.go:97
↓ 1 callersFunctionrandomLockToken
()
service/cluster_lock.go:58
↓ 1 callersFunctionreadLinuxCPUPercent
()
service/system_load_linux.go:29
↓ 1 callersFunctionreadLinuxLoadAverage
()
service/system_load_linux.go:77
↓ 1 callersFunctionreadLinuxMemory
()
service/system_load_linux.go:89
↓ 1 callersFunctionreadPlatformSystemLoad
()
service/system_load_other.go:5
↓ 1 callersFunctionreadWindowsCPUPercent
()
service/system_load_windows.go:48
↓ 1 callersFunctionreadWindowsMemory
()
service/system_load_windows.go:87
↓ 1 callersFunctionreadinessHandler
(cfg config.Config, db *gorm.DB, redisClient *redis.Client)
router/router.go:203
↓ 1 callersFunctionreleaseClusterLock
(redisClient *redis.Client, key string, token string)
service/cluster_lock.go:43
↓ 1 callersFunctionrenderMarkdown
(source)
frontend/src/utils/markdown.js:25
↓ 1 callersFunctionrequestBaseURL
(c *gin.Context, cfg config.Config)
controller/order.go:1227
↓ 1 callersFunctionrequestProtocol
(c *gin.Context)
middleware/api_key.go:82
↓ 1 callersFunctionresolveBalanceBillingGroupID
(db *gorm.DB, userGroupID *uint)
upstream/proxy.go:251
↓ 1 callersFunctionrunDueChannelMonitors
(db *gorm.DB)
service/channel_monitor.go:72
↓ 1 callersFunctionsanitizeHtml
(html)
frontend/src/utils/markdown.js:19
↓ 1 callersFunctionsanitizeInstanceID
(value string)
config/config.go:169
↓ 1 callersFunctionscaleUSDMicros
(log *model.APILog, targetMicros int64, currentMicros int64)
service/quota.go:534
↓ 1 callersFunctionseedDocs
(db *gorm.DB)
database/database.go:367
↓ 1 callersFunctionselectProxyUpstream
(db *gorm.DB, apiKey model.APIKey, accessSource string, protocol string, now time.Time)
upstream/proxy.go:168
↓ 1 callersFunctionsetOAuthStateCookie
(c *gin.Context, state, baseURL string)
controller/oauth.go:627
← previousnext →301–400 of 595, ranked by callers