MCPcopy Create free account

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

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

↓ 2 callersMethodGetStatusCodeMapping
()
model/channel.go:601
↓ 2 callersMethodGetSystemFingerprint
()
relaykit/dto/openai_response.go:205
↓ 2 callersMethodGetSystemRoleName
()
relaykit/dto/openai_request.go:406
↓ 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:874
↓ 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 callersFunctionGetTimedOutUnfinishedTasks
(cutoffUnix int64, limit int)
model/task.go:402
↓ 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:577
↓ 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.
pluginkit/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 callersFunctionHookHTTPResponse
HookHTTPResponse is the {status, headers} argument of the parse hooks for an upstream reply: the first value of each header.
pluginkit/task.go:190
↓ 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
↓ 2 callersMethodInsert
()
model/redemption.go:188
↓ 2 callersMethodInsert
Insert 创建新的供应商记录
model/vendor_meta.go:29
↓ 2 callersMethodInsertWithContext
InsertWithContext creates the row. omitColumns are left out of the INSERT (for example "data" when the submit route discards the upstream snapshot) wh
model/task.go:526
↓ 2 callersMethodInsertWithTx
InsertWithTx inserts a new user within an existing transaction. This is used for OAuth registration where user creation and binding need to be atomic.
model/user.go:740
↓ 2 callersFunctionInspectStreamResponse
InspectStreamResponse avoids treating a single Gemini streaming chunk as a complete grounding document. Gemini grounding chunk indexes and segment off
relaykit/relayconvert/internal/toolconv/response.go:51
↓ 2 callersFunctionInvalidateCache
InvalidateCache clears the compiled-expression cache. Called when billing rules are updated.
pkg/billingexpr/compile.go:366
↓ 2 callersFunctionInvalidateExposedDataCache
()
setting/ratio_setting/exposed_cache.go:24
↓ 2 callersFunctionIsAdmin
(userId int)
model/user.go:1231
↓ 2 callersFunctionIsAdvancedCustomChannel
IsAdvancedCustomChannel includes named channels backed by route presets.
constant/channel.go:239
↓ 2 callersFunctionIsAdvancedCustomConverterAllowed
(converter string)
relaykit/dto/channel_settings.go:472
↓ 2 callersFunctionIsChannelEnabledForGroupModel
(group string, modelName string, channelID int)
model/channel_satisfy.go:10
↓ 2 callersFunctionIsChannelError
(err *NewAPIError)
relaykit/types/error.go:374
↓ 2 callersFunctionIsCustomProvider
IsCustomProvider checks if a provider is a custom provider
oauth/registry.go:102
↓ 2 callersMethodIsFinished
()
relaykit/dto/openai_response.go:157
↓ 2 callersFunctionIsGitHubIdAlreadyTaken
(githubId string)
model/user.go:1188
↓ 2 callersMethodIsIPAccessAllowed
IsIPAccessAllowed 检查IP是否允许访问
common/ssrf_protection.go:251
↓ 2 callersFunctionIsImageGenerationModel
(modelName string)
common/model.go:44
↓ 2 callersFunctionIsModelNameDuplicated
(id int, name string)
model/model_meta.go:252
↓ 2 callersFunctionIsOpenAIGPT5Model
IsOpenAIGPT5Model identifies the GPT-5 family, independently of request capabilities.
relaykit/dto/openai_request.go:318
↓ 2 callersFunctionIsOpenAIReasoningOModel
(modelName string)
relaykit/dto/openai_request.go:311
↓ 2 callersFunctionIsPrefillGroupNameDuplicated
IsPrefillGroupNameDuplicated 检查组名称是否重复(排除自身 ID)
model/prefill_group.go:98
↓ 2 callersFunctionIsProviderRegistered
IsProviderRegistered checks if a provider is registered
oauth/registry.go:94
↓ 2 callersFunctionIsProviderUserIdTaken
IsProviderUserIdTaken checks if a provider user ID is already bound to any user
model/user_oauth_binding.go:57
↓ 2 callersFunctionIsRunningInContainer
IsRunningInContainer detects if the application is running inside a container
common/utils.go:97
↓ 2 callersFunctionIsSlugTaken
IsSlugTaken checks if a slug is already taken by another provider Returns true on DB errors (fail-closed) to prevent slug conflicts
model/custom_oauth_provider.go:155
↓ 2 callersMethodIsSuccess
()
dto/task.go:30
↓ 2 callersFunctionIsSupported
IsSupported checks if a language code is supported
i18n/i18n.go:214
↓ 2 callersMethodIsURL
()
relaykit/types/file_source.go:14
↓ 2 callersMethodIsUserIDTaken
IsUserIDTaken checks if the provider user ID is already associated with an account
oauth/provider.go:26
↓ 2 callersFunctionIsWeChatIdAlreadyTaken
(wechatId string)
model/user.go:1184
↓ 2 callersFunctionJSONString
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:714
↓ 2 callersMethodJSValue
()
pluginkit/routing.go:314
↓ 2 callersMethodListDeployments
ListDeployments retrieves a list of deployments with optional filtering
pkg/ionet/deployment.go:56
↓ 2 callersFunctionListSystemTasks
(filter SystemTaskFilter, offset, limit int)
model/system_task.go:219
↓ 2 callersFunctionListWaffoPancakeCatalog
ListWaffoPancakeCatalog queries Pancake's GraphQL `stores` for the merchant's stores + onetime products. A successful call also proves the supplied cr
service/waffo_pancake.go:442
↓ 2 callersFunctionLoadTaskArtifactStoreConfig
LoadTaskArtifactStoreConfig reads and validates startup-only configuration. S3 mode is deliberately disabled until a storage implementation is shipped
setting/system_setting/task_artifact_store.go:54
↓ 2 callersFunctionLoadToolPricesFromJSONString
LoadToolPricesFromJSONString replaces the complete operator price map. Invalid legacy entries are ignored individually so valid sibling overrides surv
setting/operation_setting/tools.go:199
↓ 2 callersFunctionLogJson
LogJson 仅供测试使用 only for test
logger/logger.go:179
↓ 2 callersFunctionLogSystemError
LogSystemError reports an internal converter failure through its dedicated hook, keeping it distinct from malformed request-data diagnostics.
relaykit/relayconvert/kitutil/log.go:55
↓ 2 callersFunctionManageUser
ManageUser Only admin user can do this
controller/user.go:1094
↓ 2 callersMethodMarkIncomplete
(reason string)
relay/common/stream_status.go:119
↓ 2 callersFunctionMarkSystemTaskLeaseExpired
(taskID string)
model/system_task.go:504
↓ 2 callersFunctionMaskEmail
MaskEmail masks a user email to prevent PII leakage in logs Returns "***masked***" if email is empty, otherwise shows only the domain part
common/str.go:120
↓ 2 callersMethodMaskSensitiveErrorWithStatusCode
(upstreamURLs ...string)
relaykit/types/error.go:167
↓ 2 callersFunctionMaskSensitiveInfo
MaskSensitiveInfo moved to the conversion kit (kitutil) because the types package error formatting depends on it; host callers keep this name.
common/str.go:138
↓ 2 callersMethodMatchPattern
()
pkg/cachex/namespace.go:32
↓ 2 callersFunctionMaxBodyBytes
MaxBodyBytes is MAX_REQUEST_BODY_MB in bytes, 128 MB when unset: the limit a client body is read with, which a patched body keeps as well.
pkg/requestpatch/patch.go:290
↓ 2 callersMethodMergeAdmin
(values map[string]any)
model/log_other.go:105
↓ 2 callersFunctionMidjourneyErrorWithStatusCodeWrapper
(code int, desc string, statusCode int)
service/error.go:28
↓ 2 callersFunctionMigrateLegacyGitHubBindingWithTx
MigrateLegacyGitHubBindingWithTx rewrites a login-name GitHub binding to the numeric account ID once the login flow has confirmed the account. It repo
model/account_security.go:157
↓ 2 callersFunctionModelPricingVersion
(values PricingValues)
model/model_pricing_config.go:81
↓ 2 callersFunctionNew
(ctx context.Context, r *redis.Client)
common/limiter/limiter.go:27
↓ 2 callersFunctionNewBase64FileSource
(base64Data string, mimeType string)
relaykit/types/file_source.go:127
↓ 2 callersFunctionNewClaudeToChatStreamState
()
relaykit/relayconvert/response_compat.go:54
↓ 2 callersFunctionNewClientWithConfig
NewClientWithConfig creates a new IO.NET API client with custom configuration
pkg/ionet/client.go:84
← previousnext →3,301–3,400 of 15,592, ranked by callers