MCPcopy Create free account

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

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

↓ 1 callersFunctionIsViolationFeeCode
(code types.ErrorCode)
service/violation_fee.go:26
↓ 1 callersFunctionJsonRawMessageToString
JsonRawMessageToString returns JSON strings as their decoded value and other JSON values as raw text.
common/json.go:111
↓ 1 callersMethodLastRebuildError
()
pkg/jsplugin/registry.go:1016
↓ 1 callersMethodLastRebuildOutcome
()
pkg/jsplugin/registry.go:1022
↓ 1 callersMethodLen
()
types/set.go:26
↓ 1 callersFunctionListActiveTaskPlugins
ListActiveTaskPlugins returns the enabled override rows without their source and icon payloads; see GetTaskPluginSyncSnapshot.
model/task_plugin.go:177
↓ 1 callersMethodListContainers
ListContainers retrieves all containers for a specific deployment
pkg/ionet/container.go:13
↓ 1 callersMethodListHardwareTypes
ListHardwareTypes retrieves available hardware types using the max GPUs endpoint
pkg/ionet/hardware.go:74
↓ 1 callersMethodListLocations
ListLocations retrieves available deployment locations (if supported by the API)
pkg/ionet/hardware.go:113
↓ 1 callersFunctionListLoginSessions
(userID int, currentSID string)
service/auth_session.go:313
↓ 1 callersFunctionListSystemTasks
(c *gin.Context)
controller/system_task.go:68
↓ 1 callersMethodLoadPolicy
(m casbinmodel.Model)
service/authz/adapter.go:22
↓ 1 callersFunctionLogInfo
(message string)
relaykit/relayconvert/kitutil/log.go:37
↓ 1 callersMethodLogMode
(logger.LogLevel)
model/user_session_migration_test.go:36
↓ 1 callersFunctionLogQuota
LogQuota formats a quota for a server log line.
logger/logger.go:125
↓ 1 callersFunctionLogStartupSuccess
(startTime time.Time, host, port string)
common/sys_log.go:63
↓ 1 callersFunctionLookupHostProtocolOperation
(method, path string)
pkg/jsplugin/routing.go:190
↓ 1 callersMethodLookupIPAddr
(ctx context.Context, host string)
service/protected_fetch_client.go:18
↓ 1 callersFunctionLookupTextConverter
(converter string)
relaykit/relayconvert/text_converter_registry.go:260
↓ 1 callersFunctionManageMultiKeys
ManageMultiKeys handles multi-key management operations
controller/channel.go:1910
↓ 1 callersFunctionManualCompleteTopUp
ManualCompleteTopUp 管理员手动完成订单并给用户充值
model/topup.go:450
↓ 1 callersMethodMarkCancelled
()
relay/common/stream_status.go:123
↓ 1 callersFunctionMarkChannelAffinityUsed
(c *gin.Context, selectedGroup string, channelID int)
service/channel_affinity.go:683
↓ 1 callersMethodMarkRequestPluginHeaderOverrides
MarkRequestPluginHeaderOverrides marks the attempt's header changes to the lowercase names the channel's header override replaced.
relay/common/request_plugin.go:279
↓ 1 callersMethodMarshal
()
relay/channel/volcengine/protocols.go:274
↓ 1 callersMethodMarshalJSON
()
types/rw_map.go:21
↓ 1 callersMethodMaskSensitiveError
MaskSensitiveError masks the upstream addresses of the channel that produced the error in the error text; see kitutil.MaskSensitiveInfo.
relaykit/types/error.go:153
↓ 1 callersFunctionMaskTokenKey
(key string)
model/token.go:67
↓ 1 callersMethodMaxRangeSeconds
()
setting/operation_setting/log_setting.go:35
↓ 1 callersMethodMedia
Media describes the media ref names; false when ref is not one of the call's.
pkg/jsplugin/media.go:26
↓ 1 callersMethodMediaText
MediaText reads the text of the media ref names, at most maxChars UTF-16 code units; false when ref is not one of the call's.
pkg/jsplugin/media.go:29
↓ 1 callersMethodMergeAudit
(values map[string]any)
model/log_other.go:139
↓ 1 callersMethodMergeRoot
(values map[string]any)
model/log_other.go:122
↓ 1 callersMethodMigrateColumn
(value any, field *schema.Field, column gorm.ColumnType)
model/migration_dialector.go:24
↓ 1 callersFunctionMjBulkUpdate
(mjIds []string, params map[string]any)
model/midjourney.go:202
↓ 1 callersFunctionMjBulkUpdateByTaskIds
(taskIDs []int, params map[string]any)
model/midjourney.go:208
↓ 1 callersFunctionModelModifierEffort
ModelModifierEffort is the reasoning effort the modifiers of a model name set, as a relay request reads them; "" when they set none or are invalid.
relay/helper/reasoning_suffix.go:154
↓ 1 callersFunctionModelRequestRateLimitGroup2JSONString
()
setting/rate_limit.go:28
↓ 1 callersMethodModelUser
()
service/passkey/user.go:59
↓ 1 callersFunctionMonitor
Monitor 定时监控cpu使用率,超过阈值输出pprof文件
common/pprof.go:13
↓ 1 callersMethodMu
()
relaykit/types/file_source.go:26
↓ 1 callersFunctionMultimodalEmbeddingHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/ali/embedding.go:129
↓ 1 callersFunctionNativeGeminiEmbeddingHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/gemini/relay-gemini-native.go:57
↓ 1 callersFunctionNewBillingSession
--------------------------------------------------------------------------- NewBillingSession 工厂 — 根据计费偏好创建会话并处理回退 -----------------------------------
service/billing_session.go:389
↓ 1 callersFunctionNewChatToResponsesStreamState
(id string, model string)
relaykit/relayconvert/response_compat.go:160
↓ 1 callersFunctionNewClaudeHostedStreamBridge
()
relaykit/relayconvert/response_compat.go:58
↓ 1 callersFunctionNewClient
NewClient creates a new IO.NET API client targeting the public API base URL.
pkg/ionet/client.go:79
↓ 1 callersFunctionNewDefaultHTTPClient
NewDefaultHTTPClient creates a new default HTTP client
pkg/ionet/client.go:25
↓ 1 callersFunctionNewGeminiHostedStreamBridge
()
relaykit/relayconvert/response_compat.go:62
↓ 1 callersFunctionNewMessageFromBytes
(data []byte)
relay/channel/volcengine/protocols.go:226
↓ 1 callersFunctionNewOpenAIVideo
()
relaykit/dto/openai_video.go:43
↓ 1 callersFunctionNewPasskeyCredentialFromWebAuthn
(userID int, credential *webauthn.Credential)
model/passkey.go:102
↓ 1 callersMethodNewPayload
()
service/system_task.go:46
↓ 1 callersFunctionNewResponsesBufferedAccumulator
()
relaykit/relayconvert/response_compat.go:208
↓ 1 callersFunctionNewResponsesToChatStreamState
(model string, includeUsage bool)
relaykit/relayconvert/response_compat.go:196
↓ 1 callersFunctionNewResponsesToChatStreamState
(model string, includeUsage bool)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:50
↓ 1 callersFunctionNewResponsesToClaudeStreamState
(id string, model string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:44
↓ 1 callersFunctionNewTelegramOAuthFlow
()
oauth/telegram.go:53
↓ 1 callersFunctionNormalizeCacheCreationSplit
(totalTokens int, tokens5m int, tokens1h int)
service/convert.go:9
↓ 1 callersFunctionNormalizeCacheCreationSplit
(totalTokens int, tokens5m int, tokens1h int)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go:108
↓ 1 callersFunctionNormalizeCacheCreationSplit
(totalTokens int, tokens5m int, tokens1h int)
relaykit/relayconvert/internal/shared/claude/cache.go:3
↓ 1 callersMethodNormalizeLegacyDalleImageRequest
NormalizeLegacyDalleImageRequest preserves the retired models' request validation and defaults. Other models, including aliases, are unchanged.
relaykit/dto/legacy_dalle_image.go:15
↓ 1 callersFunctionNormalizeProxyURL
NormalizeProxyURL validates a proxy URL using runtime-compatible rules and returns its canonical cache key.
service/http_client.go:196
↓ 1 callersFunctionNormalizeResponsesUsage
(src *dto.Usage)
relaykit/relayconvert/response_compat.go:184
↓ 1 callersFunctionNormalizeResponsesUsage
NormalizeResponsesUsage maps Responses usage into the shared accounting shape without creating a BillingUsage snapshot. Native Responses handlers use
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:191
↓ 1 callersMethodNormalizedEventType
NormalizedEventType returns the event type or empty string for a nil event.
service/waffo_pancake.go:68
↓ 1 callersFunctionNotifyUpstreamModelUpdateWatchers
NotifyUpstreamModelUpdateWatchers sends the upstream model update notice to every administrator who enabled it. render builds the subject and content
service/user_notify.go:33
↓ 1 callersFunctionOaiChatToResponsesHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/openai/responses_via_chat.go:19
↓ 1 callersFunctionOaiResponsesToChatHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/openai/chat_via_responses.go:23
↓ 1 callersMethodObserve
(response *dto.GeminiChatResponse)
relaykit/relayconvert/response_compat.go:66
↓ 1 callersFunctionObserveChannelAffinityUsageCacheFromContext
(c *gin.Context, usage *dto.Usage, cachedTokenRateMode string)
service/channel_affinity.go:801
↓ 1 callersFunctionOpenAIChatRequestToGeminiGenerateContent
(c context.Context, textRequest dto.GeneralOpenAIRequest, info convmeta.Meta)
relaykit/relayconvert/request_compat.go:28
↓ 1 callersFunctionOpenAIResponsesRequestFromAny
(request any)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:28
↓ 1 callersFunctionOpenAIResponsesRequestToClaudeMessages
(c context.Context, info convmeta.Meta, req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/request_compat.go:68
↓ 1 callersFunctionOpenAIResponsesRequestToClaudeMessages
(c context.Context, info convmeta.Meta, req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:27
↓ 1 callersFunctionOpenAIResponsesRequestToGeminiChat
(c context.Context, req *dto.OpenAIResponsesRequest, info convmeta.Meta)
relaykit/relayconvert/request_compat.go:72
↓ 1 callersFunctionOpenaiRealtimeHandler
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/openai/relay_realtime.go:21
↓ 1 callersFunctionOpenaiSTTHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo, responseFormat string)
relay/channel/openai/audio.go:117
↓ 1 callersFunctionOpenaiTTSHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/openai/audio.go:20
↓ 1 callersMethodOutboundImageCount
(body []byte)
relay/image_handler.go:29
↓ 1 callersFunctionParallelToolCalls
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:237
↓ 1 callersFunctionParamOverride
ParamOverride is utils.paramOverride(body, override): the channel param override DSL run on a stage hook's body, with a condition context built from t
relay/requestplugin/param_override.go:28
↓ 1 callersFunctionParseFileReference
ParseFileReference resolves a ref produced by FileReference back to the multipart field and the zero-based file index within that field.
pkg/jsplugin/routing.go:306
↓ 1 callersMethodParseInput
()
relaykit/dto/openai_request.go:475
↓ 1 callersMethodParseInput
ParseInput parses the Responses API `input` field into a normalized slice of MediaInput. Reference implementation mirrors Message.ParseContent: - inpu
relaykit/dto/openai_request.go:1247
↓ 1 callersFunctionParseKnownProviderModelSuffix
ParseKnownProviderModelSuffix extracts a canonical intent only when the origin identifies a provider family whose suffix vocabulary is defined by rela
relaykit/relayconvert/reasoning/suffix.go:195
↓ 1 callersFunctionParseOpenAIReasoningEffortFromModelSuffix
ParseOpenAIReasoningEffortFromModelSuffix extracts an effort tail only from GPT and o-series model families. preserveEffortTail is consulted on the co
relaykit/relayconvert/reasoning/suffix.go:128
↓ 1 callersMethodParseTaskResult
(task *model.Task, resp *http.Response, body []byte)
service/task_polling.go:32
↓ 1 callersFunctionPasskeyRegisterBegin
(c *gin.Context)
controller/passkey.go:45
↓ 1 callersFunctionPatchClaudeMessageDeltaUsageData
(data string, usage *dto.ClaudeUsage)
relaykit/relayconvert/response_compat.go:116
↓ 1 callersFunctionPath2RelayMode
(path string)
relay/constant/relay_mode.go:57
↓ 1 callersFunctionPath2RelayModeMidjourney
(path string)
relay/constant/relay_mode.go:103
↓ 1 callersFunctionPayMethods2JsonString
()
setting/operation_setting/payment_setting_old.go:44
↓ 1 callersFunctionPendingSyncTaskTypes
PendingSyncTaskTypes returns the types that have sync tasks not every node has applied yet.
model/system_sync_task.go:102
↓ 1 callersFunctionPingDB
()
model/main.go:816
↓ 1 callersFunctionPluginCredentialPreview
PluginCredentialPreview names a credential line for key lists without its secrets: its label, or its account id.
service/provider_plugin.go:727
↓ 1 callersFunctionPluginLoginRedirectURI
PluginLoginRedirectURI is the callback address of a plugin's logins. Each plugin has its own, so a callback cannot reach another plugin's flow.
service/provider_plugin_login.go:105
↓ 1 callersFunctionPreConsumeUserSubscription
PreConsumeUserSubscription pre-consumes from any active subscription total quota.
model/subscription.go:1316
↓ 1 callersFunctionPreWssConsumeQuota
PreWssConsumeQuota charges the usage of one Realtime response and returns the quota it charged.
service/quota.go:90
↓ 1 callersMethodPrepareWebSocket
(c *gin.Context, info *common.RelayInfo)
relay/channel/api_request.go:444
← previousnext →5,401–5,500 of 15,409, ranked by callers