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
↓ 1 callers
Function
runRefresh
(refreshEpoch: number)
web/src/lib/auth-session.ts:298
↓ 1 callers
Method
runRequest
(state *responsesWSCallState, message []byte, envelope responsesWSCreateEvent, streamID string, requestID stri
relay/responses_websocket.go:189
↓ 1 callers
Function
runSubscriptionQuotaResetOnce
()
service/subscription_reset_task.go:46
↓ 1 callers
Function
runUpdateSystemTaskStateIdenticalPayloadKeepsLock
(t *testing.T, taskType string)
model/system_task_test.go:520
↓ 1 callers
Function
runWithLeaseHeartbeat
runWithLeaseHeartbeat renews the per-type lock on a background ticker while fn runs. The TTL is a crash-detection window, not a task time limit: an ar
service/system_task.go:309
↓ 1 callers
Function
runtimeLabel
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:109
↓ 1 callers
Function
safeDivide
( value: number, divisor: number, precision: number = 3 )
web/src/features/dashboard/lib/stats.ts:24
↓ 1 callers
Function
safeMime
safeMime is mime when it is a plain type/subtype, otherwise application/octet-stream: it is written into a JSON string unescaped.
relay/requestplugin/attachments.go:723
↓ 1 callers
Function
safeNavigate
(target: unknown, fallback = '/dashboard')
web/src/routes/oauth/$provider.tsx:194
↓ 1 callers
Function
safeParseJson
(str: string)
web/src/features/system-settings/models/group-special-usable-editor.tsx:88
↓ 1 callers
Function
sameBillingUsageDialect
(current *BillingUsage, incoming *BillingUsage)
relaykit/dto/usage_merge.go:139
↓ 1 callers
Function
sameItems
(a, b []T)
setting/request_plugin_setting/config.go:106
↓ 1 callers
Function
sameItems
(a: readonly T[], b: readonly T[])
web/src/features/task-plugins/lib/plugin-scope.ts:35
↓ 1 callers
Function
samePluginMap
(left, right map[string]*LoadedPlugin)
pkg/jsplugin/registry.go:516
↓ 1 callers
Function
sameValue
(left, right)
plugins/tasks/param-override/plugin.js:65
↓ 1 callers
Function
sampleImagePart
The console's sample image as one content part of a request format.
web/src/features/task-plugins/lib/request-plugin-samples.ts:52
↓ 1 callers
Function
sanitizeClickHouseLikePattern
(input string)
model/log.go:48
↓ 1 callers
Function
sanitizeHtmlContent
( content: string, variant: HtmlContentVariant )
web/src/components/html-content.tsx:121
↓ 1 callers
Function
sanitizeMessagesOnLoad
(messages: Message[])
web/src/features/playground/lib/message/message-streaming-utils.ts:217
↓ 1 callers
Function
sankeyDatumFlag
(datum: Record<string, unknown>, key: string)
web/src/features/dashboard/lib/flow.ts:1053
↓ 1 callers
Function
sankeyDatumSource
( datum: Record<string, unknown> )
web/src/features/dashboard/lib/flow.ts:1034
↓ 1 callers
Function
save
(submitted: RoutingPolicyFormValues)
web/src/features/system-settings/request-policies/routing-section.tsx:87
↓ 1 callers
Function
saveButton
()
web/src/features/system-settings/models/__tests__/price-changes.test.tsx:136
↓ 1 callers
Function
saveGranularity
(granularity: TimeGranularity)
web/src/features/dashboard/lib/filters.ts:85
↓ 1 callers
Function
saveManagedKeyStatus
saveManagedKeyStatus runs change on the stored multi-key channel and writes the key statuses, channel status and status reason it leaves. A change ano
controller/channel.go:150
↓ 1 callers
Function
saveSetupGuideExpanded
(expanded: boolean)
web/src/features/dashboard/components/overview/overview-dashboard.tsx:135
↓ 1 callers
Function
saveWaffoPancakeConfig
(params: { merchantID: string privateKey: string returnURL: string storeID: string productID: string
web/src/features/system-settings/integrations/waffo-pancake-api.ts:87
↓ 1 callers
Function
savedConfig
What the channel would save, as the drawer converts it on submit.
web/src/features/channels/components/__tests__/channel-plugin-config-fields.test.tsx:84
↓ 1 callers
Function
savedPlugin
(active: boolean)
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:77
↓ 1 callers
Function
savedRoutes
The plugin_routes the channel would save.
web/src/features/channels/components/__tests__/plugin-channel-routes.test.tsx:70
↓ 1 callers
Function
savedSettings
(form: ChannelFormValues)
web/src/features/channels/lib/__tests__/vertex-channel.test.ts:47
↓ 1 callers
Function
scalarTimeGroup
( value: string, timeFunc: TimeFunc = 'hour' )
web/src/features/pricing/lib/__tests__/time-rule-expr.test.ts:53
↓ 1 callers
Function
scopesToPermissionMatrix
( scopes: readonly string[] )
web/src/lib/admin-permissions.ts:133
↓ 1 callers
Function
scrollParent
(element: HTMLElement)
web/src/features/channels/hooks/use-channel-priority-drag.ts:43
↓ 1 callers
Function
searchApiKeys
( params: SearchApiKeysParams )
web/src/features/keys/api.ts:45
↓ 1 callers
Function
searchCalls
()
web/src/features/channels/components/__tests__/table-refresh.test.tsx:137
↓ 1 callers
Function
searchChannels
( params: SearchChannelsParams )
web/src/features/channels/api.ts:207
↓ 1 callers
Function
searchDeployments
(params: { p?: number page_size?: number status?: string keyword?: string })
web/src/features/models/api.ts:376
↓ 1 callers
Function
searchEntriesFor
(role: number, sidebarModulesAdmin = '')
web/src/components/__tests__/command-menu.test.tsx:76
↓ 1 callers
Function
searchRedemptions
( params: SearchRedemptionsParams )
web/src/features/redemption-codes/api.ts:44
↓ 1 callers
Function
searchUsers
( params: SearchUsersParams )
web/src/features/users/api.ts:72
↓ 1 callers
Function
secondImage
(req)
plugins/tasks/alibaba/plugin.js:442
↓ 1 callers
Method
section
section reads the cross-reference table or stream at offset into the table and returns its trailer dictionary.
relay/requestplugin/pdf.go:1005
↓ 1 callers
Function
securityProofError
(c *gin.Context, code, message string)
middleware/secure_verification.go:82
↓ 1 callers
Function
seedBuiltInRoles
(db *gorm.DB)
service/authz/seed.go:11
↓ 1 callers
Function
seedDefaultPolicies
()
service/authz/seed.go:49
↓ 1 callers
Function
seedFlowLookupData
(t *testing.T)
model/usedata_flow_test.go:15
↓ 1 callers
Function
seedFlowQuotaData
(t *testing.T, quotaData QuotaData)
model/usedata_flow_test.go:10
↓ 1 callers
Function
seedanceDisplayTiers
()
web/src/features/pricing/__tests__/breakdown-tier-match.test.ts:36
↓ 1 callers
Function
seedanceUsageExamples
(profile)
plugins/tasks/doubao/plugin.js:285
↓ 1 callers
Function
seedanceUsageSchema
(profile)
plugins/tasks/doubao/plugin.js:246
↓ 1 callers
Function
seedreamUsageSchema
(profile)
plugins/tasks/doubao/plugin.js:214
↓ 1 callers
Function
selectComboboxOption
( trigger: HTMLButtonElement, optionDescription: string )
web/src/features/keys/components/__tests__/api-keys-mutate-drawer.test.tsx:184
↓ 1 callers
Function
selectCurrency
(label: string)
web/src/features/model-pricing/__tests__/editor-currency.test.tsx:132
↓ 1 callers
Function
selectFile
(file?: File)
web/src/features/task-plugins/components/plugin-source-picker.tsx:44
↓ 1 callers
Function
selectSource
( user: ReturnType<typeof userEvent.setup>, source: string )
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:195
↓ 1 callers
Function
selectTemplate
(nextTemplateKey: string)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:626
↓ 1 callers
Function
selectedNodeFiltersExceptKind
( selectedNodes: readonly FlowNodeFilter[] | undefined, kind: FlowNodeKind )
web/src/features/dashboard/lib/flow.ts:406
↓ 1 callers
Function
sendBarkNotify
(barkURL string, data dto.Notify)
service/user_notify.go:135
↓ 1 callers
Function
sendChatCompletion
( payload: ChatCompletionRequest, signal?: AbortSignal )
web/src/features/playground/api.ts:33
↓ 1 callers
Function
sendCode
(email: string)
web/src/features/auth/hooks/use-email-verification.ts:50
↓ 1 callers
Function
sendEmailNotify
(userEmail string, data dto.Notify)
service/user_notify.go:125
↓ 1 callers
Function
sendEmailVerification
( email: string, turnstile?: string )
web/src/features/auth/api.ts:258
↓ 1 callers
Function
sendFetchModelsRequest
sendFetchModelsRequest sends a model list request through the channel's proxy and TLS setting. The caller closes the response body.
controller/channel_upstream_update.go:356
↓ 1 callers
Function
sendGotifyNotify
(gotifyUrl string, gotifyToken string, priority int, data dto.Notify)
service/user_notify.go:204
↓ 1 callers
Function
sendPasswordResetEmail
( email: string, turnstile?: string )
web/src/features/auth/api.ts:152
↓ 1 callers
Function
sendResendEmail
API contract: https://resend.com/docs/api-reference/emails/send-email OWASP Authentication / Session Management / Forgot Password cheat sheets: do not
common/email_resend.go:40
↓ 1 callers
Method
sendStep
sendStep sends one request of a plugin route as DoApiRequest does, with the request's own method, address and headers: the route or credential auth, t
relay/channel/providerplugin/chain.go:114
↓ 1 callers
Function
sendToFluent
(apiKey: string, serverAddress?: string)
web/src/features/chat/lib/send-to-fluent.ts:19
↓ 1 callers
Function
sendable
(config, attachment)
plugins/tasks/content-moderation/plugin.js:334
↓ 1 callers
Function
sensitiveWordInstanceName
()
model/sensitive_word_migration.go:91
↓ 1 callers
Function
sensitiveWordLines
sensitiveWordLines is the old word list, one word per line, as the check read it: lines trimmed, empty lines dropped.
model/sensitive_word_migration.go:81
↓ 1 callers
Function
separatedResponsesDelta
(delta string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:492
↓ 1 callers
Function
serializeEndpointItems
(items: PrefillGroup['items'])
web/src/features/models/components/prefill-group-shared.ts:119
↓ 1 callers
Function
serializeRules
(rules: Rule[])
web/src/features/system-settings/models/group-special-usable-editor.tsx:121
↓ 1 callers
Function
serve
* Answers the update request with `start` and each progress check with the * next of `progress`; a progress check past the last one rejects.
web/src/features/channels/lib/__tests__/update-all-balances.test.ts:45
↓ 1 callers
Function
serveHTTP2ProbePeer
serveHTTP2ProbePeer can withhold PING acknowledgements without sending FIN or RST, reproducing an upstream connection silently lost by an intermediary
service/http_client_transport_test.go:583
↓ 1 callers
Function
servePluginCredentials
Serves the channel's credential list as it is when the panel asks.
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:3379
↓ 1 callers
Function
sessionAsyncPaymentFailed
sessionAsyncPaymentFailed marks orders as failed when delayed payment methods ultimately fail (e.g. bank transfer not received, SEPA rejected).
controller/topup_stripe.go:239
↓ 1 callers
Function
sessionAsyncPaymentSucceeded
sessionAsyncPaymentSucceeded handles delayed payment methods (bank transfer, SEPA, etc.) that confirm payment after the checkout session completes.
controller/topup_stripe.go:229
↓ 1 callers
Function
sessionCompleted
(ctx context.Context, event stripe.Event, callerIp string)
controller/topup_stripe.go:209
↓ 1 callers
Function
sessionExpired
(ctx context.Context, event stripe.Event)
controller/topup_stripe.go:309
↓ 1 callers
Function
setAuthMode
(mode: AdvancedCustomAuthMode)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:1371
↓ 1 callers
Function
setCachedConnection
(ok: boolean)
web/src/features/models/hooks/use-model-deployment-settings.ts:45
↓ 1 callers
Function
setCompactMode
(value: boolean, tableKey: string)
web/src/hooks/use-table-compact-mode.ts:34
↓ 1 callers
Function
setConverter
(nextConverter: AdvancedCustomConverter)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:1349
↓ 1 callers
Function
setDeepValue
( target: Record<string, unknown>, path: string, value: unknown )
web/src/features/system-settings/hooks/use-settings-form.ts:111
↓ 1 callers
Function
setDir
(dir: Direction)
web/src/context/direction-provider.tsx:49
↓ 1 callers
Function
setFilterValue
( filters: TaskLogsFilters, logCategory: TaskLikeLogCategory, value: string )
web/src/features/usage-logs/components/task-logs-filter-bar.tsx:56
↓ 1 callers
Function
setGeminiPartialArgValue
(current any, path []geminiPartialArgPathSegment, value any, appendString bool)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:672
↓ 1 callers
Function
setInterfaceLanguage
(language: string)
web/src/components/__tests__/date-picker-locale.test.tsx:35
↓ 1 callers
Function
setInterfaceLanguage
(language: string)
web/src/features/security/components/__tests__/login-session-item.test.tsx:41
↓ 1 callers
Function
setKind
(kind: PluginKind)
web/src/features/task-plugins/index.tsx:81
↓ 1 callers
Function
setLegacyAccessTokenRetireAt
setLegacyAccessTokenRetireAt moves the stored transition deadline the way an operator restoring the option row would, then reloads it.
controller/access_token_audit_test.go:158
↓ 1 callers
Method
setMember
(name string, value *node)
pkg/requestpatch/patch.go:530
↓ 1 callers
Function
setMessageDeltaUsageInt
(data string, path string, localValue int)
relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go:480
↓ 1 callers
Function
setMobileViewport
(mobile: boolean)
web/src/components/data-table/toolbar/__tests__/mobile-filter.test.tsx:80
↓ 1 callers
Function
setModelsInput
(value: string)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:1375
↓ 1 callers
Function
setOption
( name: | 'pass_through_body_enabled' | 'upstream_model_update_check_enabled' | 'respons
web/src/features/channels/components/channel-quick-options.tsx:88
↓ 1 callers
Function
setReducedMotion
(value: boolean)
web/src/features/keys/components/__tests__/api-key-group-combobox.test.tsx:33
← previous
next →
8,401–8,500 of 15,592, ranked by callers