MCPcopy Create free account

hub / github.com/QuantumNous/new-api / functions

Functions15,409 in github.com/QuantumNous/new-api

↓ 1 callersFunctionGetRankingsSnapshot
(period string)
service/rankings.go:138
↓ 1 callersFunctionGetRatioConfig
(c *gin.Context)
controller/ratio_config.go:13
↓ 1 callersFunctionGetRecentPerfMetricSuccessBuckets
GetRecentPerfMetricSuccessBuckets reads the latest nonempty hours within the supplied history window, independently of the summary's reporting window.
model/perf_metric.go:120
↓ 1 callersFunctionGetRequestBody
(c *gin.Context)
common/gin.go:40
↓ 1 callersFunctionGetRequestPluginInstances
(c *gin.Context)
controller/request_plugin.go:41
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/jimeng/adaptor.go:35
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/ali/adaptor.go:89
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/aws/adaptor.go:86
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/volcengine/adaptor.go:239
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/vertex/adaptor.go:188
↓ 1 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/codex/adaptor.go:141
↓ 1 callersMethodGetReturnDocuments
()
relaykit/dto/rerank.go:47
↓ 1 callersFunctionGetSetup
()
model/setup.go:9
↓ 1 callersFunctionGetStats
GetStats 获取统计信息
middleware/stats.go:37
↓ 1 callersFunctionGetSubscriptionPlanInfoByUserSubscriptionId
(userSubscriptionId int)
model/subscription.go:1503
↓ 1 callersFunctionGetSupportedEndpointMap
GetSupportedEndpointMap 返回全局端点到路径的映射
model/pricing.go:498
↓ 1 callersFunctionGetSystemTaskSetting
()
setting/operation_setting/system_task_setting.go:27
↓ 1 callersFunctionGetTask
(c *gin.Context)
controller/task.go:39
↓ 1 callersFunctionGetTaskForProtocolObservation
GetTaskForProtocolObservation reloads one public task through the ownership boundary used by long-lived plugin protocol observers. A missing task, for
model/task.go:503
↓ 1 callersFunctionGetTaskPlugin
(c *gin.Context)
controller/task_plugin.go:507
↓ 1 callersFunctionGetTaskPluginIcon
GetTaskPluginIcon serves a plugin logo as an image. The active override wins (or the requested ?version=), then the factory sidecar. Data icons are on
controller/task_plugin.go:479
↓ 1 callersFunctionGetTaskRequest
(c *gin.Context)
relay/common/relay_utils.go:124
↓ 1 callersFunctionGetTimeString
()
common/utils.go:243
↓ 1 callersFunctionGetTimedOutUnfinishedTasks
(cutoffUnix int64, limit int)
model/task.go:399
↓ 1 callersFunctionGetTokenAutoGroups
(c *gin.Context)
controller/token.go:178
↓ 1 callersMethodGetTokenCountMeta
()
relaykit/dto/openai_request.go:183
↓ 1 callersMethodGetTokenCountMeta
()
relaykit/dto/embedding.go:35
↓ 1 callersMethodGetTokenCountMeta
()
relaykit/dto/openai_image.go:167
↓ 1 callersFunctionGetTokenKey
(c *gin.Context)
controller/token.go:190
↓ 1 callersFunctionGetTokenKeysByIds
(ids []int, userId int)
model/token.go:478
↓ 1 callersFunctionGetTokenSetting
GetTokenSetting 获取令牌配置
setting/operation_setting/token_setting.go:21
↓ 1 callersMethodGetTools
()
relaykit/dto/gemini.go:183
↓ 1 callersMethodGetToolsMap
()
relaykit/dto/openai_request.go:1207
↓ 1 callersFunctionGetTwoFAStats
GetTwoFAStats 获取2FA统计信息(管理员使用)
model/twofa.go:340
↓ 1 callersFunctionGetUniqueByOnlyTaskId
GetUniqueByOnlyTaskId resolves a public task identifier only when exactly one row owns it. Historical task identifiers were not globally unique, so ca
model/task.go:457
↓ 1 callersMethodGetUpstreamModelName
()
relay/common/relay_info.go:890
↓ 1 callersFunctionGetUptimeKumaGroups
()
setting/console_setting/validation.go:328
↓ 1 callersFunctionGetUsableGroupDescription
(groupName string)
setting/user_usable_group.go:47
↓ 1 callersFunctionGetUserByOAuthBinding
GetUserByOAuthBinding finds a user by provider ID and provider user ID
model/user_oauth_binding.go:41
↓ 1 callersFunctionGetUserCheckinRecords
GetUserCheckinRecords 获取用户在指定日期范围内的签到记录
model/checkin.go:32
↓ 1 callersFunctionGetUserCheckinStats
GetUserCheckinStats 获取用户签到统计信息
model/checkin.go:143
↓ 1 callersFunctionGetUserGroupRatio
GetUserGroupRatio 获取用户使用某个分组的倍率 userGroup 用户分组 group 需要获取倍率的分组
service/group.go:128
↓ 1 callersMethodGetUserInfo
GetUserInfo retrieves user information using the access token
oauth/provider.go:23
↓ 1 callersFunctionGetUserLanguage
GetUserLanguage returns the user's language preference from cache Uses the existing GetUserCache mechanism for efficiency
model/user_cache.go:223
↓ 1 callersFunctionGetUserTopUps
(userId int, pageInfo *common.PageInfo)
model/topup.go:300
↓ 1 callersFunctionGetUserUsableGroupsCopy
()
setting/user_usable_group.go:19
↓ 1 callersMethodGetVerifiedEmails
(ctx context.Context, token *OAuthToken)
oauth/provider.go:48
↓ 1 callersFunctionGroundingWebSearchQueries
GroundingWebSearchQueries returns the distinct hosted-search queries that Gemini reports for a response. The provider may repeat metadata across candi
relaykit/relayconvert/internal/gemini_chat/grounding.go:62
↓ 1 callersFunctionGroupGroupRatio2JSONString
()
setting/ratio_setting/group_ratio.go:100
↓ 1 callersFunctionGuessRelayFormatFromRequest
GuessRelayFormatFromRequest moved to convmeta with the converters; the delegation keeps host callers unchanged.
relay/common/request_conversion.go:10
↓ 1 callersFunctionHasActiveUserSubscription
HasActiveUserSubscription returns whether the user has any active subscription. This is a lightweight existence check to avoid heavy pre-consume trans
model/subscription.go:883
↓ 1 callersFunctionHasCustomProviderConflict
(name string)
oauth/registry.go:48
↓ 1 callersFunctionHasFunctionCallContent
(call *dto.FunctionCall)
relaykit/relayconvert/internal/shared/gemini/request.go:271
↓ 1 callersMethodHasImage
()
relay/common/relay_info.go:1075
↓ 1 callersFunctionHasModelBillingConfig
(modelName string)
relay/helper/price.go:281
↓ 1 callersFunctionHasPriceOrRatioEntry
HasPriceOrRatioEntry reports whether name has a configured price, ratio, or tiered billing-mode entry after a single wildcard normalization. Self-use
relay/helper/price.go:298
↓ 1 callersMethodHasTokens
()
relaykit/dto/openai_response.go:301
↓ 1 callersFunctionHasUnfinishedMidjourneyTasks
HasUnfinishedMidjourneyTasks reports whether at least one Midjourney task is still in progress. It is a cheap existence check (LIMIT 1) used to decide
model/midjourney.go:111
↓ 1 callersFunctionHasUnfinishedSyncTasks
HasUnfinishedSyncTasks reports whether at least one async (Suno/video) task is still in progress. It is a cheap existence check (LIMIT 1) used to deci
model/task.go:428
↓ 1 callersFunctionHmacSha256Raw
(message, key []byte)
common/hash.go:26
↓ 1 callersFunctionI18n
I18n middleware detects and sets the language preference for the request
middleware/i18n.go:13
↓ 1 callersFunctionIncrementDiskCacheHits
IncrementDiskCacheHits 增加磁盘缓存命中次数
common/disk_cache_config.go:137
↓ 1 callersFunctionIncrementMemoryBuffers
IncrementMemoryBuffers 增加内存缓存计数
common/disk_cache_config.go:125
↓ 1 callersFunctionIncrementMemoryCacheHits
IncrementMemoryCacheHits 增加内存缓存命中次数
common/disk_cache_config.go:142
↓ 1 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/providerplugin/adaptor.go:68
↓ 1 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/openai/adaptor.go:98
↓ 1 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/tencent/dispatch.go:19
↓ 1 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/vertex/adaptor.go:127
↓ 1 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:46
↓ 1 callersFunctionInitAc
(dict []string)
service/str.go:63
↓ 1 callersFunctionInitBatchUpdater
()
model/utils.go:34
↓ 1 callersFunctionInitEnv
()
common/init.go:32
↓ 1 callersFunctionInitPasswordEncryption
InitPasswordEncryption loads the shared login-encryption key from its dedicated store. Concurrent replicas converge through the unique slot.
model/password_crypto.go:25
↓ 1 callersFunctionInitRedisClient
InitRedisClient This function is called after init()
common/redis.go:24
↓ 1 callersFunctionInitResources
()
main.go:317
↓ 1 callersFunctionInitializeUserAuthVersions
InitializeUserAuthVersions must run after AutoMigrate when upgrading an existing database. It is idempotent and portable across all supported DBs.
model/user_auth_cache.go:269
↓ 1 callersFunctionInjectGoogleAnalytics
()
main.go:294
↓ 1 callersFunctionInjectUmamiAnalytics
()
main.go:274
↓ 1 callersMethodInsert
Insert 新建组
model/prefill_group.go:90
↓ 1 callersMethodInterval
()
service/system_task.go:45
↓ 1 callersFunctionInvalidateUserTokensCache
InvalidateUserTokensCache 清理指定用户所有令牌在 Redis 中的缓存, 配合 InvalidateUserCache 使用,可在用户被禁用/删除时立即阻断其令牌的请求。 下一次请求将从数据库重新加载令牌及用户状态,从而立即识别出被禁用的用户。
model/token.go:489
↓ 1 callersFunctionIsAlwaysSkipRetryCode
(errorCode types.ErrorCode)
setting/operation_setting/status_code_ranges.go:75
↓ 1 callersMethodIsChannelEnabled
(channelID int, channelType int)
setting/model_setting/global.go:21
↓ 1 callersFunctionIsCurrencyDisplay
IsCurrencyDisplay 是否以货币形式展示(美元或人民币)
setting/operation_setting/general_setting.go:45
↓ 1 callersFunctionIsDiscordIdAlreadyTaken
(discordId string)
model/user.go:1176
↓ 1 callersFunctionIsEmailAlreadyTaken
(email string)
model/user.go:1144
↓ 1 callersFunctionIsEmailAvailable
(email string, excludeUserID int)
model/user.go:332
↓ 1 callersFunctionIsJsonObject
(str string)
common/str.go:72
↓ 1 callersFunctionIsKnownClaudeModel
(model string)
relaykit/relayconvert/reasoning/claude.go:416
↓ 1 callersFunctionIsLinuxDOIdAlreadyTaken
(linuxDOId string)
model/user.go:1517
↓ 1 callersFunctionIsOidcIdAlreadyTaken
(oidcId string)
model/user.go:1180
↓ 1 callersFunctionIsOpenAIResponseOnlyModel
(modelName string)
common/model.go:35
↓ 1 callersMethodIsOpenRouterEnterprise
()
relaykit/dto/channel_settings.go:152
↓ 1 callersFunctionIsRecordErrorLog
(e *NewAPIError)
relaykit/types/error.go:416
↓ 1 callersMethodIsRegistered
()
relaykit/types/file_source.go:24
↓ 1 callersMethodIsRemoteImage
()
relaykit/dto/openai_request.go:631
↓ 1 callersMethodIsStopped
IsStopped returns whether Stop() or Done() was called during this chunk.
relay/helper/stream_result.go:52
↓ 1 callersMethodIsStream
(c *http.Request)
relaykit/dto/gemini.go:164
↓ 1 callersMethodIsStringContent
()
relaykit/dto/openai_request.go:734
↓ 1 callersFunctionIsTelegramIdAlreadyTaken
(telegramId string)
model/user.go:1184
← previousnext →5,301–5,400 of 15,409, ranked by callers