MCPcopy Create free account

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

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

↓ 1 callersFunctioncreateModelSchema
(t: Translate)
web/src/features/system-settings/models/ratio-settings-card.tsx:118
↓ 1 callersFunctioncreateNonUniformMatrix
()
web/src/features/pricing/__tests__/task-matrix.test.ts:53
↓ 1 callersFunctioncreateOpenAINativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:238
↓ 1 callersFunctioncreatePaymentMethodDialogSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/payment-method-dialog.tsx:40
↓ 1 callersFunctioncreatePlan
( data: PlanPayload )
web/src/features/subscriptions/api.ts:44
↓ 1 callersFunctioncreatePrefillGroup
(data: { name: string type: 'model' | 'tag' | 'endpoint' items: string | string[] description?: string
web/src/features/models/api.ts:258
↓ 1 callersFunctioncreatePricingSchema
(t: (key: string) => string)
web/src/features/system-settings/general/pricing-section.tsx:58
↓ 1 callersFunctioncreateQueryClient
()
web/src/lib/__tests__/status-query.test.tsx:60
↓ 1 callersFunctioncreateRateLimitSchema
(t: (key: string) => string)
web/src/features/system-settings/request-limits/rate-limit-section.tsx:69
↓ 1 callersFunctioncreateRedemption
( data: RedemptionFormData )
web/src/features/redemption-codes/api.ts:66
↓ 1 callersFunctioncreateRegeneratedMessages
( messages: Message[], messageKey: string )
web/src/features/playground/lib/message/conversation-message-utils.ts:70
↓ 1 callersFunctioncreateRoutingPolicySchema
(t: TFunction)
web/src/features/system-settings/request-policies/routing-form.ts:6
↓ 1 callersFunctioncreateSectionSearchSchema
( sectionIds: readonly [TSectionId, ...TSectionId[]], defaultSection: TSectionId )
web/src/features/system-settings/utils/route-config.ts:25
↓ 1 callersFunctioncreateSignedJWT
(email, privateKeyPEM string)
relay/channel/vertex/service_account.go:97
↓ 1 callersFunctioncreateStatusMapper
(mapping: { [key in T]?: { label: string; variant: StatusBadgeProps['variant'] } })
web/src/features/usage-logs/lib/status.ts:25
↓ 1 callersFunctioncreateTestRouter
(error: Error | { response: { status: number } })
web/src/features/errors/__tests__/general-error.test.tsx:54
↓ 1 callersFunctioncreateTray
()
electron/main.js:428
↓ 1 callersFunctioncreateTrayIcon
()
electron/create-tray-icon.js:7
↓ 1 callersFunctioncreateUptimeKumaSchema
(t: (key: string) => string)
web/src/features/system-settings/content/uptime-kuma-section.tsx:70
↓ 1 callersFunctioncreateUser
( data: UserFormData, proofToken?: string )
web/src/features/users/api.ts:110
↓ 1 callersFunctioncreateUserMessage
( content: string, createdAt: number = Date.now() )
web/src/features/playground/lib/message/message-utils.ts:77
↓ 1 callersFunctioncreateUserSubscription
( userId: number, data: CreateUserSubscriptionRequest )
web/src/features/subscriptions/api.ts:82
↓ 1 callersFunctioncreateVendor
( data: Partial<Vendor> )
web/src/features/models/api.ts:168
↓ 1 callersFunctioncreateWaffoPancakePair
(params: { merchantID: string privateKey: string returnURL: string })
web/src/features/system-settings/integrations/waffo-pancake-api.ts:74
↓ 1 callersFunctioncreateWaffoPancakeSubscriptionProduct
(data: { name: string amount: string })
web/src/features/subscriptions/api.ts:167
↓ 1 callersFunctioncreateWorkerSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/worker-settings-section.tsx:47
↓ 1 callersMethodcreatedResponse
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:807
↓ 1 callersFunctioncredentialAuthorization
credentialAuthorization is a credential's Authorization header value.
relay/channel/task/jsplugin/credential.go:176
↓ 1 callersFunctioncutUTF16
cutUTF16 is the longest prefix of text at most limit UTF-16 code units long.
relay/requestplugin/attachments.go:522
↓ 1 callersFunctiondashScopeHeaders
(ctx, asynchronous)
plugins/tasks/alibaba/plugin.js:1063
↓ 1 callersFunctiondashboardBearer
(header string)
controller/auth_session.go:196
↓ 1 callersFunctiondataURL
dataURL streams item as a JSON string holding its data URL.
relay/requestplugin/attachments.go:697
↓ 1 callersFunctiondataUrlBytes
(url: string)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:198
↓ 1 callersFunctiondateToUnixTimestamp
(date: Date)
web/src/lib/time.ts:32
↓ 1 callersFunctiondearestSettings
(action, model)
plugins/tasks/vidu/plugin.js:189
↓ 1 callersFunctiondebounce
( fn: (value: string[]) => void, delay: number )
web/src/features/system-settings/hooks/use-accordion-state.ts:22
↓ 1 callersFunctiondeclaredBy
(bound: readonly string[])
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:1472
↓ 1 callersFunctiondeclaredEndpointNames
declaredEndpointNames resolves the endpoint types declared by one model metadata row. Model metadata accepts two shapes — the map form (custom paths)
model/model_pricing_conversion.go:155
↓ 1 callersFunctiondecodeAlibabaImage
(t *testing.T, plugin *jsplugin.LoadedPlugin, operation string, body map[string]any)
plugins/alibaba_responses_test.go:1252
↓ 1 callersFunctiondecodeBalanceWindow
(value any, subject string)
pkg/jsplugin/provider.go:2093
↓ 1 callersFunctiondecodeBoundedProtocolString
(raw json.RawMessage, field string, maxBytes int, required bool)
relay/plugin_protocol.go:311
↓ 1 callersFunctiondecodeChannelConfigSchema
decodeChannelConfigSchema reads meta.channelConfig: the configSchema format, where a url field is a channel address and an object field may hold a val
pkg/jsplugin/config_schema.go:411
↓ 1 callersFunctiondecodeChunks
decodeChunks reads [{bodyBase64}]: the binary output a result adds to the client body.
pkg/jsplugin/provider.go:1377
↓ 1 callersFunctiondecodeClaudeChoice
(value any, definitions []Definition)
relaykit/relayconvert/internal/toolconv/decode.go:757
↓ 1 callersFunctiondecodeClaudeDefinition
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:447
↓ 1 callersFunctiondecodeConfigField
decodeConfigField reads one field at depth; depth 0 is the schema itself, which has only type "object", properties and required. channel marks a field
pkg/jsplugin/config_schema.go:466
↓ 1 callersFunctiondecodeConfigSchema
decodeConfigSchema reads meta.configSchema from the JSON text the plugin declares, which keeps its property order.
pkg/jsplugin/config_schema.go:404
↓ 1 callersFunctiondecodeConvertedForm
decodeConvertedForm reads {fields?: {name: string | string[]}, files?: [{field, from, filename?, contentType?}]}. Names and values that end up in part
pkg/jsplugin/provider.go:936
↓ 1 callersFunctiondecodeConvertedResponse
decodeConvertedResponse reads {body, contentType?} or {bodyBase64, contentType?}, or {next, state?} for a chain; any of them may have tools. The conte
pkg/jsplugin/provider.go:1120
↓ 1 callersFunctiondecodeGeminiChoice
(config *dto.ToolConfig)
relaykit/relayconvert/internal/toolconv/decode.go:807
↓ 1 callersFunctiondecodeGeminiDefinitions
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:529
↓ 1 callersFunctiondecodeImageCount
(req, hasInputReferenceFile)
plugins/tasks/jimeng/plugin.js:292
↓ 1 callersFunctiondecodeInt
(data json.RawMessage, target *int)
pkg/requestpatch/patch.go:277
↓ 1 callersFunctiondecodeKling4Submit
(endpoint)
plugins/tasks/kling/plugin.js:429
↓ 1 callersFunctiondecodeLegacyOpenAIFunctionChoice
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:619
↓ 1 callersFunctiondecodeLoginFields
(value any)
pkg/jsplugin/provider.go:1615
↓ 1 callersFunctiondecodeLoginStep
(result any)
pkg/jsplugin/provider.go:1527
↓ 1 callersFunctiondecodeMeta
(value any)
pkg/jsplugin/registry.go:1370
↓ 1 callersFunctiondecodeOpenAIChatChoice
(value any)
relaykit/relayconvert/internal/toolconv/decode.go:701
↓ 1 callersFunctiondecodeOpenAIChatLocation
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:686
↓ 1 callersFunctiondecodeOpenAIChatPseudoHostedTool
decodeOpenAIChatPseudoHostedTool recognizes the OpenAI Chat dialect that declares Gemini hosted tools as function definitions named googleSearch, code
relaykit/relayconvert/internal/toolconv/decode.go:657
↓ 1 callersFunctiondecodeOpenAIResponsesChoice
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:727
↓ 1 callersFunctiondecodeOperations
(data json.RawMessage, effectIndex int)
pkg/requestpatch/patch.go:201
↓ 1 callersFunctiondecodePluginSemanticEvent
(raw json.RawMessage, limits PluginProtocolLimits)
relay/plugin_protocol.go:210
↓ 1 callersFunctiondecodeProtocolClaims
decodeProtocolClaims accepts both protocol entry shapes: a bare protocol name string (binds every meta.models entry) and an object {name, models, supp
pkg/jsplugin/registry.go:2325
↓ 1 callersFunctiondecodeRelayRoutes
decodeRelayRoutes reads meta.relay. Each route has exactly the keys of an Advanced Custom route.
pkg/jsplugin/registry.go:1852
↓ 1 callersFunctiondecodeReplyResult
decodeReplyResult checks a reply hook result: {action: "continue", mask?, hold?, findings?, notice?} or {action: "stop", code, message?, findings?, no
pkg/jsplugin/transform.go:502
↓ 1 callersFunctiondecodeResponsesCustomTool
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/encode.go:374
↓ 1 callersFunctiondecodeRoutes
(value any)
pkg/jsplugin/registry.go:2252
↓ 1 callersFunctiondecodeSamples
decodeSamples reads meta.samples from the JSON text the plugin wrote and checks that it carries text only.
pkg/jsplugin/sample.go:58
↓ 1 callersFunctiondecodeStreamEvents
(text json.RawMessage)
pkg/jsplugin/provider.go:1485
↓ 1 callersFunctiondecodeStreamResult
decodeStreamResult reads the output members of a convertStreamEvent result: events, or chunks, or body or bodyBase64 (with contentType for chunks and
pkg/jsplugin/provider.go:1324
↓ 1 callersFunctiondecodeSystemInstanceInfo
(data string)
model/system_instance.go:114
↓ 1 callersFunctiondecodeSystemTaskJSONValue
(data string)
model/system_task.go:611
↓ 1 callersFunctiondecodeTransformResult
decodeTransformResult checks a stage hook result: {action: "continue", effects?, findings?} or {action: "reject", code, message?, ruleId?, findings?}.
pkg/jsplugin/transform.go:337
↓ 1 callersFunctiondecodeUsageProfiles
(value any)
pkg/jsplugin/registry.go:1954
↓ 1 callersMethoddecodeVisibleWhen
decodeVisibleWhen reads the visibleWhen of the property name: each key names another of these properties, of type string, number, integer or boolean,
pkg/jsplugin/config_schema.go:736
↓ 1 callersFunctiondecodeWebSocketRequest
decodeWebSocketRequest reads {url | path, headers?, protocols?, messages?}.
pkg/jsplugin/provider.go:858
↓ 1 callersFunctiondecreaseTokenQuota
(id int, quota int)
model/token.go:431
↓ 1 callersFunctiondecreaseUserQuota
(id int, quota int)
model/user.go:1404
↓ 1 callersFunctiondedupeOptionRows
(rows []Option)
model/option_primary_key_migration.go:166
↓ 1 callersFunctiondeduplicateKeys
(keysText: string)
web/src/features/channels/lib/channel-utils.ts:734
↓ 1 callersFunctiondeferred
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:86
↓ 1 callersFunctiondeferred
()
web/src/features/playground/hooks/use-stream-request.test.ts:24
↓ 1 callersFunctiondeferredResponse
()
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:95
↓ 1 callersFunctiondeferredResponse
()
web/src/features/channels/hooks/__tests__/channel-key-disclosure.test.tsx:43
↓ 1 callersFunctiondefinedFields
(source, keys)
plugins/tasks/hailuo/plugin.js:180
↓ 1 callersFunctiondeleteApiKey
(id: number)
web/src/features/keys/api.ts:89
↓ 1 callersFunctiondeleteChannel
( id: number )
web/src/features/channels/api.ts:290
↓ 1 callersFunctiondeleteCustomOAuthProvider
( id: number )
web/src/features/system-settings/auth/custom-oauth/api.ts:66
↓ 1 callersFunctiondeleteDeployment
( id: string | number )
web/src/features/models/api.ts:423
↓ 1 callersFunctiondeleteDisabledChannels
()
web/src/features/channels/api.ts:399
↓ 1 callersFunctiondeleteDisabledMultiKeys
( channelId: number )
web/src/features/channels/api.ts:644
↓ 1 callersFunctiondeleteExpiredUserSessionsBefore
(expiredBefore, issuanceCutoff, revokedBefore int64)
model/user_session.go:822
↓ 1 callersFunctiondeleteInvalidRedemptions
()
web/src/features/redemption-codes/api.ts:97
↓ 1 callersFunctiondeleteModel
(modelName: string)
web/src/features/channels/components/dialogs/ollama-models-dialog.tsx:339
↓ 1 callersFunctiondeleteModel
( id: number, removeFromChannels = false, removePricing = false )
web/src/features/models/api.ts:113
↓ 1 callersFunctiondeleteModels
( modelIds: number[], removeFromChannels = false, removePricing = false )
web/src/features/models/api.ts:641
↓ 1 callersFunctiondeleteMultiKey
( channelId: number, keyIndex: number )
web/src/features/channels/api.ts:606
↓ 1 callersFunctiondeleteOldEmptyBucket
(k bucketKey, rawKey any)
pkg/perf_metrics/flush.go:63
← previousnext →6,201–6,300 of 15,409, ranked by callers