Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 2 callers
Function
isOtherTooltipKey
(key: string)
web/src/features/dashboard/lib/charts.ts:85
↓ 2 callers
Function
isPDFDelimiter
(char byte)
relay/requestplugin/pdf.go:566
↓ 2 callers
Function
isPerCallBilling
(modelPrice?: number)
web/src/features/usage-logs/lib/utils.ts:73
↓ 2 callers
Function
isPluginLoginPolling
(step: PluginLoginStep | null)
web/src/features/channels/lib/plugin-login.ts:173
↓ 2 callers
Function
isPositiveFiniteNumber
(value: unknown)
web/src/features/usage-logs/lib/format.ts:102
↓ 2 callers
Function
isPrivateIP
isPrivateIP 检查IP是否为私有/保留/特殊用途地址
common/ssrf_protection.go:98
↓ 2 callers
Function
isRecord
(value: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:52
↓ 2 callers
Function
isRecord
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:38
↓ 2 callers
Function
isResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:218
↓ 2 callers
Function
isSankeyLinkDatum
(datum: Record<string, unknown>)
web/src/features/dashboard/lib/flow.ts:1062
↓ 2 callers
Function
isStaleFactoryOverride
(item: TaskPluginListItem)
web/src/features/task-plugins/lib/marketplace.ts:431
↓ 2 callers
Function
isStripeTopUpEnabled
()
controller/payment_webhook_availability.go:14
↓ 2 callers
Function
isStripeWebhookEnabled
()
controller/payment_webhook_availability.go:27
↓ 2 callers
Function
isTaskBreakdownTier
(tier: BreakdownTier)
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:177
↓ 2 callers
Function
isTaskPricingTier
(tier: DynamicPricingTier)
web/src/features/pricing/lib/dynamic-price.ts:144
↓ 2 callers
Function
isTimeGranularity
(value: unknown)
web/src/features/dashboard/lib/filters.ts:36
↓ 2 callers
Function
isTimeValueInRange
(timeFunc: TimeFunc, text: string)
web/src/features/pricing/lib/billing-expr.ts:394
↓ 2 callers
Function
isTimestampExpired
(timestamp: number)
web/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callers
Function
isUsageLogsSectionId
(s: string)
web/src/features/usage-logs/section-registry.tsx:59
↓ 2 callers
Function
isValidToolPrice
(price float64)
setting/operation_setting/tools.go:147
↓ 2 callers
Function
isViolationFeeLog
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:93
↓ 2 callers
Function
isWaffoPancakeWebhookEnabled
()
controller/payment_webhook_availability.go:91
↓ 2 callers
Function
isWaffoTopUpEnabled
()
controller/payment_webhook_availability.go:49
↓ 2 callers
Function
isWaffoWebhookEnabled
()
controller/payment_webhook_availability.go:72
↓ 2 callers
Function
isZeroDraft
(value: string)
web/src/features/system-settings/models/draft-number-input.tsx:44
↓ 2 callers
Function
issueAccessTokenGenerateProof
(t *testing.T, identity service.AuthIdentity, expiresAt int64, scopes ...string)
controller/access_token_audit_test.go:135
↓ 2 callers
Function
joinBaseURLAndUpstreamPath
(baseURL string, upstreamPath string)
relay/channel/advancedcustom/adaptor.go:504
↓ 2 callers
Function
joinPaths
joinPaths matches gin's route path joining, which keeps a trailing slash from the relative path, so declared keys equal c.FullPath().
router/channel-router.go:29
↓ 2 callers
Function
jsonBodyBoolFlags
(c *gin.Context)
middleware/task_plugin.go:695
↓ 2 callers
Function
keepAliveWriter
keepAliveWriter 返回 c.Writer 链上的请求保活,包括被其他 writer(如请求插件的回复检查)包裹的情况。
relay/helper/common.go:118
↓ 2 callers
Function
keyAddress
* The address under /{key} at which the gateway also serves a declared route, * which always reaches this plugin. A route whose first segment is the
web/src/features/task-plugins/components/plugin-endpoints.tsx:87
↓ 2 callers
Method
keyForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:623
↓ 2 callers
Function
keysOf
(schema map[string]jsplugin.UsageFieldSchema)
plugins/doubao_responses_test.go:490
↓ 2 callers
Method
keywords
Stage hooks, reply and report: the distinct keywords of the instance config property field (format "keywords") that text contains, as the list spells
pluginkit/v1.d.ts:42
↓ 2 callers
Function
kling4CompletedUnits
(ctx, body)
plugins/tasks/kling/plugin.js:410
↓ 2 callers
Function
klingFactoryVersion
klingFactoryVersion returns the version declared in the embedded kling factory manifest so tests do not hardcode a value that moves with every plugin
controller/task_plugin_test.go:143
↓ 2 callers
Function
knownPollStatus
(status model.TaskStatus)
service/task_polling.go:831
↓ 2 callers
Function
lastModelPathSegment
(modelName string)
relaykit/relayconvert/reasoning/suffix.go:213
↓ 2 callers
Function
legacyGitHubBindingAudits
legacyGitHubBindingAudits returns the account binding audit rows in creation order together with their encoded parameters.
controller/auth_flow_test.go:872
↓ 2 callers
Function
legacyGitHubOAuthLogin
legacyGitHubOAuthLogin registers provider for one test and completes an OAuth login callback with it.
controller/auth_flow_test.go:856
↓ 2 callers
Function
legacyInputPricePerMillion
(ratio float64)
model/model_pricing_conversion.go:37
↓ 2 callers
Function
listDeploymentContainers
( deploymentId: string | number )
web/src/features/models/api.ts:401
↓ 2 callers
Function
listDeployments
(params: { p?: number page_size?: number status?: string })
web/src/features/models/api.ts:361
↓ 2 callers
Function
listModelsMeta
(c *gin.Context, keyword, vendor string)
controller/model_meta.go:25
↓ 2 callers
Function
listSystemTasks
( limit = 20, filters: SystemTaskFilters = {} )
web/src/features/system-settings/api.ts:97
↓ 2 callers
Function
listWaffoPancakeSubscriptionProductOptions
()
web/src/features/subscriptions/api.ts:182
↓ 2 callers
Function
loadParameterEnabled
()
web/src/features/playground/lib/storage/storage.ts:327
↓ 2 callers
Function
loadPluginLoginFlow
loadPluginLoginFlow reads an unconsumed, unexpired flow of the same administrator and session; pluginKey, when set, must be its plugin.
service/provider_plugin_login.go:332
↓ 2 callers
Function
loadedTaskPluginParts
loadedTaskPluginParts reads the parts of a plugin the runtime holds from its manifest and its exports.
controller/task_plugin.go:251
↓ 2 callers
Function
localizedTextMetaField
(object map[string]any, name string, maxRunes int)
pluginkit/meta.go:2123
↓ 2 callers
Function
lockEmailBindingWithTx
(tx *gorm.DB, identity AuthSessionIdentity, token string)
model/email_binding.go:152
↓ 2 callers
Function
lockMetadataMutation
(tx *gorm.DB)
model/model_metadata_sync.go:34
↓ 2 callers
Function
lockNormalizedEmail
(tx *gorm.DB, email string)
model/user.go:378
↓ 2 callers
Function
lockPasskeyDomainSettings
lockPasskeyDomainSettings serializes trust changes and credential writes across nodes. Callers also hold passkeyOptionMutex for SQLite and local cache
model/passkey_option.go:53
↓ 2 callers
Function
logCleanupProgress
(processed int64, total int64)
service/system_task.go:446
↓ 2 callers
Function
logTaskPluginChannelDecision
(c *gin.Context, channel *model.Channel, modelName, event, reason string)
middleware/task_plugin.go:1755
↓ 2 callers
Function
loginStep
(t *testing.T, step string)
pluginkit/provider_test.go:271
↓ 2 callers
Function
logout
()
web/src/features/auth/api.ts:132
↓ 2 callers
Function
lookupAccessToken
lookupAccessToken resolves raw once per request, so the access audit and authentication share one database lookup.
middleware/auth.go:249
↓ 2 callers
Function
lookupRequestRoute
(from types.RelayFormat, to types.RelayFormat)
relaykit/relayconvert/request_registry.go:370
↓ 2 callers
Function
lookupTaskPluginEndpoint
(generation *pluginruntime.RoutingGeneration, method, path, modelName string)
middleware/task_plugin.go:569
↓ 2 callers
Function
managementAdaptor
managementAdaptor is an adaptor for the management requests of the channel described by info, outside any relay request.
relay/channel/providerplugin/management.go:35
↓ 2 callers
Function
mantleRequestURL
(info *relaycommon.RelayInfo)
relay/channel/aws/mantle.go:24
↓ 2 callers
Function
mapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callers
Function
markAnnouncementsAsRead
()
web/src/hooks/use-notifications.ts:126
↓ 2 callers
Method
markHit
()
router/plugin-router.go:36
↓ 2 callers
Function
markOAuthPopup
( storage: OAuthModeStorage | null | undefined, provider: string, state: string, intent: 'bind' | 'ver
web/src/features/auth/lib/oauth-callback-mode.ts:86
↓ 2 callers
Method
markUnchecked
markUnchecked records every instance as unable to read the answer.
relay/requestplugin/reply.go:249
↓ 2 callers
Function
marketplaceBuiltInVersion
( installed?: TaskPluginListItem )
web/src/features/task-plugins/lib/marketplace.ts:423
↓ 2 callers
Function
marketplaceErrorMessage
(error: unknown)
web/src/features/task-plugins/lib/marketplace-install.ts:65
↓ 2 callers
Function
marshalChatAnnotations
(annotations []any)
relaykit/relayconvert/internal/claude_messages/citations.go:53
↓ 2 callers
Function
marshalGroundingAnnotations
(annotations []any)
relaykit/relayconvert/internal/gemini_chat/grounding.go:319
↓ 2 callers
Function
maskHostTail
maskHostTail returns the tail parts of a domain/host that should be preserved. It keeps 2 parts for likely country-code TLDs (e.g., co.uk, com.cn), ot
relaykit/relayconvert/kitutil/mask.go:30
↓ 2 callers
Function
matchAdvancedCustomIncomingPath
(configuredPath string, requestPath string)
relaykit/dto/channel_settings.go:444
↓ 2 callers
Function
matchAdvancedCustomRouteModelRule
(rule string, model string)
relaykit/dto/channel_settings.go:432
↓ 2 callers
Function
maxInlineFileBytes
()
relay/channel/task/jsplugin/adaptor.go:391
↓ 2 callers
Function
maxTokenQuota
()
controller/token.go:47
↓ 2 callers
Function
maybeResetUserSubscriptionWithPlanTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64)
model/subscription.go:1279
↓ 2 callers
Function
mediaInput
(value, name)
plugins/tasks/xai/plugin.js:164
↓ 2 callers
Function
mediaRef
(index int)
relay/requestplugin/attachments.go:294
↓ 2 callers
Function
memoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:42
↓ 2 callers
Method
mergeFinalValue
(block *responsesClaudeStreamBlock, finalValue string, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:319
↓ 2 callers
Function
mergeGeminiTokenDetails
mergeGeminiTokenDetails overlays per-modality counts the same way as the scalar counts: every stream frame carries a cumulative snapshot, so a modalit
relaykit/dto/usage_merge.go:278
↓ 2 callers
Function
mergeInputTokenDetails
(current *InputTokenDetails, incoming InputTokenDetails)
relaykit/dto/usage_merge.go:299
↓ 2 callers
Function
mergeModelBucket
(modelBuckets map[string]map[int64]counters, modelName string, bucketTs int64, value counters)
pkg/perf_metrics/metrics.go:361
↓ 2 callers
Function
mergeModelMappingPairs
( current: string, pairs: readonly ModelMappingPair[] )
web/src/features/channels/lib/model-mapping-rules.ts:112
↓ 2 callers
Function
mergeToolSurchargeItems
(items []ToolSurchargeItem)
service/text_quota.go:122
↓ 2 callers
Function
mergedHotBuckets
()
pkg/perf_metrics/metrics_test.go:176
↓ 2 callers
Method
messageOutput
(status string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:860
↓ 2 callers
Function
messageText
(value: unknown)
web/src/lib/server-error-message.ts:144
↓ 2 callers
Function
metricMean
( metrics: InferenceMetric[], name: string )
web/src/features/channels/lib/inference-status.ts:75
↓ 2 callers
Function
migrateTokenControllerTestDB
(t *testing.T, db *gorm.DB)
controller/token_test.go:107
↓ 2 callers
Function
minInt
(a int, b int)
service/rankings.go:591
↓ 2 callers
Function
modelPriceNotConfiguredError
(c *gin.Context, modelName string, userId int)
relay/helper/price.go:28
↓ 2 callers
Function
modelPricingDisplay
( entry: Pick<ModelPricingEntry, 'model_name' | 'effective' | 'usage_schema'> & Partial< Pick<
web/src/features/model-pricing/pricing.ts:71
↓ 2 callers
Function
modelRequestSucceeded
(c *gin.Context)
middleware/model-rate-limit.go:167
↓ 2 callers
Function
modelSquareData
(t *testing.T, handler gin.HandlerFunc, path, userGroup string)
controller/model_list_test.go:176
↓ 2 callers
Function
modelURL
(ctx, project, location, model, action)
plugins/tasks/vertex-ai/plugin.js:335
↓ 2 callers
Function
moderate
(config, input)
plugins/tasks/content-moderation/plugin.js:252
↓ 2 callers
Function
moderationNotice
(data)
plugins/tasks/xai/plugin.js:333
← previous
next →
4,301–4,400 of 15,592, ranked by callers