MCPcopy Create free account

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

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

↓ 2 callersFunctionGetAndValidateRequest
(c *gin.Context, format types.RelayFormat)
relay/helper/valid_request.go:22
↓ 2 callersFunctionGetAudioDuration
GetAudioDuration 使用纯 Go 库获取音频文件的时长(秒)。 它不再依赖外部的 ffmpeg 或 ffprobe 程序。
common/audio.go:22
↓ 2 callersFunctionGetAutoGroups
()
setting/auto_group.go:43
↓ 2 callersFunctionGetBillingExprCopy
()
setting/billing_setting/tiered_billing.go:176
↓ 2 callersFunctionGetBillingModeCopy
()
setting/billing_setting/tiered_billing.go:166
↓ 2 callersFunctionGetByOnlyMJId
(mjId string)
model/midjourney.go:120
↓ 2 callersMethodGetChannelID
()
relaykit/relayconvert/convmeta/meta.go:26
↓ 2 callersFunctionGetChannelPriorityOrder
()
model/channel_priority.go:58
↓ 2 callersFunctionGetChannelTypeName
(channelType int)
constant/channel.go:207
↓ 2 callersFunctionGetChannelsByIds
(ids []int)
model/channel.go:1277
↓ 2 callersFunctionGetCompletionRatioInfo
(name string)
setting/ratio_setting/model_ratio.go:445
↓ 2 callersFunctionGetConfiguredModelChannels
GetConfiguredModelChannels includes disabled channels and reads no credentials.
model/model_meta.go:176
↓ 2 callersMethodGetContainerLogsRaw
GetContainerLogsRaw retrieves the raw text logs for a specific container
pkg/ionet/container.go:152
↓ 2 callersFunctionGetCopy
()
setting/task_pricing_setting/config.go:56
↓ 2 callersFunctionGetCurrentLogPath
()
logger/logger.go:36
↓ 2 callersFunctionGetDashboardTaskArtifacts
(c *gin.Context)
controller/task.go:81
↓ 2 callersMethodGetDefaultMaxTokens
(model string)
setting/model_setting/claude.go:86
↓ 2 callersFunctionGetDefaultModelPriceMap
()
setting/ratio_setting/model_ratio.go:407
↓ 2 callersFunctionGetDefaultModelRatioMap
()
setting/ratio_setting/model_ratio.go:403
↓ 2 callersFunctionGetDiskCacheMaxSizeBytes
GetDiskCacheMaxSizeBytes 获取磁盘缓存最大大小(字节)
common/disk_cache_config.go:58
↓ 2 callersFunctionGetDiskCacheStats
GetDiskCacheStats 获取缓存统计信息
common/disk_cache_config.go:94
↓ 2 callersFunctionGetDiskSpaceInfo
GetDiskSpaceInfo 获取缓存目录所在磁盘的空间信息 (Windows)
common/system_monitor_windows.go:12
↓ 2 callersFunctionGetEnabledCustomProviders
GetEnabledCustomProviders returns all enabled custom OAuth providers
oauth/registry.go:79
↓ 2 callersFunctionGetExposedData
()
setting/ratio_setting/exposed_cache.go:34
↓ 2 callersFunctionGetGeminiInputAudioPricePerMillionTokens
(modelName string)
setting/operation_setting/tools.go:311
↓ 2 callersFunctionGetGeminiVersionSetting
GetGeminiVersionSetting 获取版本设置
setting/model_setting/gemini.go:104
↓ 2 callersFunctionGetGroupRatioSetting
()
setting/ratio_setting/group_ratio.go:54
↓ 2 callersFunctionGetGroupsEnabledModels
GetGroupsEnabledModels 按 groups 顺序获取各分组启用的模型并去重
service/group.go:111
↓ 2 callersFunctionGetImageFromUrl
GetImageFromUrl 获取图片的类型和base64编码的数据
service/image.go:69
↓ 2 callersMethodGetInputAudio
()
relaykit/dto/openai_request.go:541
↓ 2 callersMethodGetIpLimits
()
model/token.go:88
↓ 2 callersFunctionGetLatestSystemTaskIDs
GetLatestSystemTaskIDs returns the id of the newest row of each type that has one. Every type is its own MAX(id) subquery, which each database answers
model/system_task.go:271
↓ 2 callersMethodGetMaxGPUsPerContainer
GetMaxGPUsPerContainer retrieves the maximum number of GPUs available per hardware type
pkg/ionet/hardware.go:59
↓ 2 callersFunctionGetMaxUserId
()
model/user.go:397
↓ 2 callersFunctionGetMaxUserTokens
GetMaxUserTokens 获取每用户最大令牌数量
setting/operation_setting/token_setting.go:26
↓ 2 callersFunctionGetMetadataSyncState
(db *gorm.DB)
model/model_metadata_sync.go:79
↓ 2 callersFunctionGetMissingModels
GetMissingModels returns model names that are referenced in the system
model/missing_models.go:4
↓ 2 callersMethodGetModelLimitsMap
()
model/token.go:350
↓ 2 callersMethodGetModelList
()
relay/channel/adapter.go:31
↓ 2 callersFunctionGetModelSupportEndpointTypes
(model string)
model/pricing.go:116
↓ 2 callersFunctionGetNodeSyncStatus
GetNodeSyncStatus compares the newest sync task of every topic a node keeps, this one or another online node, with what each node's registry row says
service/node_sync.go:260
↓ 2 callersFunctionGetOAuthVerificationBinding
(identity AuthIdentity, scope, provider string)
service/security_verification.go:647
↓ 2 callersFunctionGetOpenAIChatCapabilities
GetOpenAIChatCapabilities uses the mapped model and resolved reasoning effort. Unrecognized models retain their parameters; future GPT generations do
relaykit/dto/openai_request.go:334
↓ 2 callersMethodGetOpenAIError
GetOpenAIError 从动态错误类型中提取OpenAIError结构
relaykit/dto/openai_response.go:388
↓ 2 callersFunctionGetPaginatedChannelTags
(query *gorm.DB, offset int, limit int)
model/channel.go:1104
↓ 2 callersMethodGetParamOverride
()
model/channel.go:1255
↓ 2 callersMethodGetPreConsumedQuota
GetPreConsumedQuota 返回实际预扣的额度。
service/billing_session.go:154
↓ 2 callersFunctionGetPreferredModelOwnerChannelTypes
(modelNames []string, groups []string)
model/model_meta.go:447
↓ 2 callersMethodGetReasoningEffort
()
relaykit/relayconvert/convmeta/meta.go:29
↓ 2 callersMethodGetReasoningEffort
()
relaykit/relayconvert/convmeta/meta.go:214
↓ 2 callersFunctionGetRedemptionById
(id int)
model/redemption.go:126
↓ 2 callersFunctionGetRequestPolicy
(c *gin.Context)
controller/request_policy.go:10
↓ 2 callersFunctionGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/minimax/relay-minimax.go:12
↓ 2 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/providerplugin/adaptor.go:89
↓ 2 callersMethodGetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/submodel/adaptor.go:39
↓ 2 callersFunctionGetSetting
()
setting/perf_metrics_setting/config.go:23
↓ 2 callersMethodGetStatusCodeMapping
()
model/channel.go:601
↓ 2 callersFunctionGetStringIfEmpty
(str string, defaultValue string)
common/str.go:27
↓ 2 callersMethodGetSystemFingerprint
()
relaykit/dto/openai_response.go:205
↓ 2 callersMethodGetSystemRoleName
()
relaykit/dto/openai_request.go:403
↓ 2 callersFunctionGetTaskArtifacts
(c *gin.Context)
controller/task.go:68
↓ 2 callersFunctionGetTaskPlatform
(c *gin.Context)
relay/relay_adaptor.go:133
↓ 2 callersFunctionGetTaskPluginMarketplaceSources
(c *gin.Context)
controller/task_plugin.go:873
↓ 2 callersFunctionGetTaskPluginSource
GetTaskPluginSource loads one override's JavaScript by row id. Rows never change source in place (SaveTaskPlugin rejects a different source for the sa
model/task_plugin.go:247
↓ 2 callersFunctionGetToken
(c *gin.Context)
controller/token.go:163
↓ 2 callersFunctionGetUUID
()
common/utils.go:198
↓ 2 callersFunctionGetUserByTelegramID
(telegramID string)
model/external_identity_claim.go:79
↓ 2 callersFunctionGetUserFlowQuotaDates
(c *gin.Context)
controller/usedata.go:104
↓ 2 callersFunctionGetUserIdByAffCode
(affCode string)
model/user.go:543
↓ 2 callersFunctionGetUserModels
(c *gin.Context)
controller/user.go:618
↓ 2 callersFunctionGetVendorByID
GetVendorByID 根据 ID 获取供应商
model/vendor_meta.go:83
↓ 2 callersFunctionGetVendorModelCounts
()
model/model_meta.go:390
↓ 2 callersMethodGetVideoUrl
()
relaykit/dto/openai_request.go:574
↓ 2 callersFunctionGetWaffoPayMethods
GetWaffoPayMethods 从 options 读取 Waffo 支付方式配置
setting/payment_waffo.go:27
↓ 2 callersFunctionGlobalAPIRateLimit
()
middleware/rate-limit.go:183
↓ 2 callersFunctionGlobalWebRateLimit
GlobalWebRateLimit limits dashboard pages and other fallback paths per IP. Files that exist in the frontend build count against a separate static limi
middleware/rate-limit.go:165
↓ 2 callersFunctionGroupInUserUsableGroups
(userGroup, groupName string)
service/group.go:44
↓ 2 callersFunctionGuessRelayFormatFromRequest
GuessRelayFormatFromRequest infers the relay format from a request DTO's concrete type. Moved from relay/common (which keeps a delegating alias).
relaykit/relayconvert/convmeta/format.go:10
↓ 2 callersFunctionHandleFinalResponse
(c *gin.Context, info *relaycommon.RelayInfo, lastStreamData string, responseId string, createAt int64, model
relay/channel/openai/helper.go:193
↓ 2 callersFunctionHandleStreamFormat
辅助函数
relay/channel/openai/helper.go:23
↓ 2 callersMethodHardDelete
()
model/user.go:996
↓ 2 callersFunctionHasCSAMViolationMarker
(err *types.NewAPIError)
service/violation_fee.go:30
↓ 2 callersMethodHasCache
()
relaykit/types/file_source.go:21
↓ 2 callersFunctionHasCapability
HasCapability describes host APIs independently of a plugin's mutable globals.
pkg/jsplugin/json_state.go:26
↓ 2 callersFunctionHasCheckedInToday
HasCheckedInToday 检查用户今天是否已签到
model/checkin.go:42
↓ 2 callersFunctionHasClaudeUsageTokens
HasClaudeUsageTokens mirrors HasOpenAIUsageTokens/HasGeminiUsageMetadataTokens: an all-zero ClaudeUsage must not become a BillingUsage, otherwise it w
relaykit/dto/billing_usage.go:39
↓ 2 callersFunctionHasConfiguredModelRatio
HasConfiguredModelRatio reports whether name has an explicit ratio entry after wildcard normalization. Self-use fallback does not count.
setting/ratio_setting/model_ratio.go:717
↓ 2 callersMethodHasModifiers
()
relaykit/relayconvert/reasoning/suffix.go:35
↓ 2 callersMethodHasSendResponse
()
relay/common/relay_info.go:1027
↓ 2 callersMethodHijack
()
router/plugin-router.go:566
↓ 2 callersFunctionIconDataURI
IconDataURI returns the embedded factory logo in the same data URI form the task_plugins.icon column stores, so factory and override logos share one r
plugins/embed.go:64
↓ 2 callersFunctionImageNeedsSize
ImageNeedsSize reports whether ImageTokens depends on the image dimensions for model and detail. When it returns false, callers can skip reading the i
tokenkit/image.go:65
↓ 2 callersFunctionImageRatio2JSONString
()
setting/ratio_setting/model_ratio.go:650
↓ 2 callersMethodInit
(info *relaycommon.RelayInfo)
service/task_polling.go:30
↓ 2 callersMethodInit
(info *relaycommon.RelayInfo)
relay/channel/ali/adaptor.go:74
↓ 2 callersFunctionInitOptionMap
()
model/option.go:33
↓ 2 callersFunctionInitRatioSettings
InitRatioSettings initializes all model related settings maps
setting/ratio_setting/model_ratio.go:336
↓ 2 callersMethodInitRequestConversionChain
()
relay/common/relay_info.go:776
↓ 2 callersFunctionInputItems
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:60
↓ 2 callersFunctionInputPreConsumeMultiplier
InputPreConsumeMultiplier rejects invalid runtime settings as well as invalid saves.
setting/operation_setting/quota_setting.go:49
← previousnext →3,201–3,300 of 15,409, ranked by callers