MCPcopy Create free account

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

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

↓ 2 callersMethodError
()
pluginkit/meta.go:928
↓ 2 callersMethodError
()
controller/video_proxy.go:43
↓ 2 callersMethodError
()
oauth/linuxdo.go:195
↓ 2 callersMethodEstimateBilling
── Billing ────────────────────────────────────────────────────── EstimateBilling returns OtherRatios for pre-charge based on user request. Called aft
relay/channel/adapter.go:55
↓ 2 callersFunctionEstimateFamily
EstimateFamily returns the estimated token count of text for a tokenizer family. Unrecognized families use the FamilyUnknown weights.
tokenkit/tokenkit.go:149
↓ 2 callersFunctionExpireStaleSystemTaskLocks
(now int64)
model/system_task.go:516
↓ 2 callersMethodExpired
Expired reports whether the token has an absolute expiry at or before now.
model/user_access_token.go:81
↓ 2 callersFunctionExplicitUserOverrides
ExplicitUserOverrides returns only the per-user override entries.
service/authz/override.go:108
↓ 2 callersFunctionExtractHostedResponse
ExtractHostedResponse removes server-executed tool artifacts before a message converter sees them. The artifacts travel beside multi-step routes, just
relaykit/relayconvert/internal/toolconv/response_artifacts.go:63
↓ 2 callersFunctionExtractOutputTextFromResponses
(resp *dto.OpenAIResponsesResponse)
service/openai_chat_responses_compat.go:28
↓ 2 callersFunctionExtractOutputTextFromResponses
(resp *dto.OpenAIResponsesResponse)
relaykit/relayconvert/response_compat.go:188
↓ 2 callersMethodFactoryKey
FactoryKey reports whether key belongs to a built-in plugin, whether or not an override or the disabled list replaces it in this generation.
pkg/jsplugin/routing.go:319
↓ 2 callersMethodFailureEvent
FailureEvent terminates an already-started stream after a host observation, hook, or validation failure. It never accepts a detail string, preventing
relay/plugin_protocol.go:536
↓ 2 callersMethodFetchMode
()
service/task_polling.go:40
↓ 2 callersMethodFetchTask
(baseURL string, key string, task *model.Task, proxy string)
service/task_polling.go:31
↓ 2 callersMethodFillUserByEmail
()
model/user.go:1097
↓ 2 callersMethodFillUserByGitHubId
()
model/user.go:1109
↓ 2 callersMethodFillUserById
()
model/user.go:1089
↓ 2 callersMethodFinalFromEvents
FinalFromEvents synthesizes the retrieval Response for stream-only plugins from one renderEvents call at terminal task status. Synthesis runs on a scr
relay/plugin_protocol.go:607
↓ 2 callersMethodFinalizeResponsesRequest
(info *relaycommon.RelayInfo, body []byte)
relay/channel/adapter.go:40
↓ 2 callersFunctionFindEarliestPendingSystemTasks
(taskTypes []string)
model/system_task.go:168
↓ 2 callersFunctionFindMetadataVendor
(vendors map[string]*Vendor, name string)
model/vendor_management.go:26
↓ 2 callersFunctionFixAbility
()
model/ability.go:378
↓ 2 callersMethodFlush
()
relay/channel/aws/relay_aws_test.go:64
↓ 2 callersFunctionFormatClaudeResponseInfo
(claudeResponse *dto.ClaudeResponse, oaiResponse *dto.ChatCompletionsStreamResponse, claudeInfo *ClaudeRespons
relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go:497
↓ 2 callersFunctionGeminiImageHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/gemini/relay-gemini.go:653
↓ 2 callersFunctionGeminiResponsesStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/gemini/relay_responses.go:83
↓ 2 callersFunctionGeminiTextGenerationStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/gemini/relay-gemini-native.go:97
↓ 2 callersMethodGeminiUsageMetadata
()
relaykit/dto/gemini.go:723
↓ 2 callersFunctionGenerateBackupCodes
GenerateBackupCodes 生成备用恢复码
common/totp.go:50
↓ 2 callersFunctionGenerateKey
()
common/utils.go:229
↓ 2 callersFunctionGenerateMjOtherInfo
(relayInfo *relaycommon.RelayInfo, priceData hosttypes.PriceData)
service/log_info_generate.go:335
↓ 2 callersFunctionGenerateStartEmptyResponse
(id string, createAt int64, model string, systemFingerprint *string)
relay/helper/common.go:343
↓ 2 callersMethodGet
(key string)
pkg/jsplugin/routing.go:131
↓ 2 callersFunctionGet2FAIssuer
Get2FAIssuer 获取2FA发行者名称
common/totp.go:116
↓ 2 callersFunctionGetAllCustomOAuthProviders
GetAllCustomOAuthProviders returns all custom OAuth providers
model/custom_oauth_provider.go:76
↓ 2 callersFunctionGetAllFlowQuotaDates
(c *gin.Context)
controller/usedata.go:85
↓ 2 callersFunctionGetAllLogs
(filter LogFilter, startIdx int, num int)
model/log.go:530
↓ 2 callersFunctionGetAllProviders
GetAllProviders returns all registered OAuth providers
oauth/registry.go:70
↓ 2 callersFunctionGetAllUnFinishSyncTasks
(limit int)
model/task.go:415
↓ 2 callersFunctionGetAllUserSubscriptions
GetAllUserSubscriptions returns all subscriptions (active and expired) for a user.
model/subscription.go:916
↓ 2 callersFunctionGetAllUsers
(pageInfo *common.PageInfo, sortOptions ...UserSortOptions)
model/user.go:403
↓ 2 callersFunctionGetAndValidateGeminiRequest
(c *gin.Context)
relay/helper/valid_request.go:399
↓ 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 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:544
↓ 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 callersFunctionGetModelUsageTotals
GetModelUsageTotals returns each model's usage over the last days, cached like the rankings. Without dashboard data there is no usage.
service/model_square_order.go:36
↓ 2 callersFunctionGetModelUsageTotals
GetModelUsageTotals sums requests and tokens per model, including models that used no tokens.
model/usedata_rankings.go:42
↓ 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
← previousnext →3,201–3,300 of 15,592, ranked by callers