MCPcopy Create free account

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

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

FunctionTooltipContent
({ className, side = 'top', sideOffset = 4, align = 'center', alignOffset = 0, children, ...prop
web/src/components/ui/tooltip.tsx:44
FunctionTooltipIconButton
({ label, icon: Icon, disabled, onClick, }: { label: string icon: LucideIcon disabled?: boolean
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:1798
FunctionTooltipProvider
({ delay = 0, ...props }: TooltipPrimitive.Provider.Props)
web/src/components/ui/tooltip.tsx:23
FunctionTooltipTrigger
({ ...props }: TooltipPrimitive.Trigger.Props)
web/src/components/ui/tooltip.tsx:40
FunctionTopNav
({ className, links, ...props }: TopNavProps)
web/src/components/layout/components/top-nav.tsx:42
FunctionTopUp
(c *gin.Context)
controller/user.go:1288
MethodTrace
(_ context.Context, _ time.Time, sql func() (string, int64), _ error)
model/user_session_migration_test.go:41
FunctionTransferAffQuota
(c *gin.Context)
controller/user.go:416
FunctionTransferDialog
({ open, onOpenChange, onConfirm, availableQuota, transferring, }: TransferDialogProps)
web/src/features/wallet/components/dialogs/transfer-dialog.tsx:45
MethodTransformHooks
TransformHooks returns the stage hooks the plugin exports, in TransformStages order, then ReplyHook and ReportHook when it exports them; nil when it h
pkg/jsplugin/transform.go:62
FunctionTrimGeminiThinkingSuffix
(modelName string)
relaykit/relayconvert/reasoning/suffix.go:218
FunctionTruncatedCell
({ children, cellClassName, className, contentClassName, side = 'top', tooltipClassName, tooltip
web/src/components/data-table/core/truncated-cell.tsx:39
FunctionTruncatedText
({ text, className, maxWidth = 'max-w-[200px]', side = 'top', }: TruncatedTextProps)
web/src/components/truncated-text.tsx:29
FunctionTryResult
(props: { plugin: TaskPluginOption sent: unknown /** The answer the reply checks read, when the run had
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:361
FunctionTurnstile
({ siteKey, onVerify, onExpire, className, }: TurnstileProps)
web/src/components/turnstile.tsx:36
FunctionTwoFABackupDialog
(props: TwoFABackupDialogProps)
web/src/features/security/components/dialogs/two-fa-backup-dialog.tsx:39
FunctionTwoFACard
({ loading: pageLoading }: TwoFACardProps)
web/src/features/security/components/two-fa-card.tsx:52
FunctionTwoFADisableDialog
(props: TwoFADisableDialogProps)
web/src/features/security/components/dialogs/two-fa-disable-dialog.tsx:39
FunctionTwoFASetupDialog
(props: TwoFASetupDialogProps)
web/src/features/security/components/dialogs/two-fa-setup-dialog.tsx:47
MethodType
()
controller/system_task_handlers.go:32
MethodType
()
controller/system_task_handlers.go:55
MethodType
()
controller/system_task_handlers.go:100
MethodType
()
controller/system_task_handlers.go:124
MethodType
()
controller/system_task_handlers.go:169
MethodType
()
controller/system_task_handlers.go:189
MethodType
()
service/system_task_test.go:46
MethodType
()
service/system_task.go:80
FunctionUnauthorisedError
()
web/src/features/errors/unauthorized-error.tsx:24
FunctionUnbindCustomOAuth
UnbindCustomOAuth unbinds a custom OAuth provider from the current user
controller/custom_oauth.go:515
FunctionUnbindCustomOAuthByAdmin
(c *gin.Context)
controller/custom_oauth.go:556
FunctionUnconfiguredTaskPricingNotice
(props: { model: PricingModel })
web/src/features/pricing/components/model-details.tsx:140
FunctionUnescapeHTML
(x string)
common/utils.go:186
FunctionUnifiedTableView
({ props, rows, colSpan, getColumnClassName, }: { props: DataTableViewProps<TData> rows: Row<TData
web/src/components/data-table/core/data-table-view.tsx:89
FunctionUniversalVerify
(c *gin.Context)
controller/secure_verification.go:157
FunctionUnknownGroupBadge
()
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:229
MethodUnmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json_test.go:24
MethodUnmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json.go:32
MethodUnmarshal
(data []byte, v any)
common/json.go:27
MethodUnmarshalJSON
(b []byte)
types/rw_map.go:14
MethodUnmarshalJSON
(data []byte)
controller/token.go:26
MethodUnmarshalJSON
UnmarshalJSON 确保在对外解码时与 json.RawMessage 行为一致
model/prefill_group.go:67
MethodUnmarshalJSON
(data []byte)
model/audit_other.go:48
MethodUnmarshalJSON
(data []byte)
pkg/jsplugin/registry.go:62
MethodUnmarshalJSON
UnmarshalJSON keeps client tools as raw JSON: Claude keeps schema property order in strict tool input, and decoded maps would sort the properties. A n
relaykit/dto/claude.go:267
MethodUnmarshalJSON
(data []byte)
relaykit/dto/claude.go:547
MethodUnmarshalJSON
UnmarshalJSON leaves a null parameters value out, as the former decoded value did.
relaykit/dto/openai_request.go:444
MethodUnmarshalJSON
UnmarshalJSON allows GeminiChatRequest to accept both snake_case and camelCase fields.
relaykit/dto/gemini.go:27
MethodUnmarshalJSON
UnmarshalJSON allows GeminiThinkingConfig to accept both snake_case and camelCase fields.
relaykit/dto/gemini.go:226
MethodUnmarshalJSON
UnmarshalJSON custom unmarshaler for GeminiInlineData to support snake_case and camelCase for MimeType
relaykit/dto/gemini.go:273
MethodUnmarshalJSON
UnmarshalJSON accepts snake_case aliases for inline data and media processing.
relaykit/dto/gemini.go:355
MethodUnmarshalJSON
UnmarshalJSON allows GeminiChatGenerationConfig to accept both snake_case and camelCase fields.
relaykit/dto/gemini.go:433
MethodUnmarshalJSON
UnmarshalJSON records whether Gemini returned usageMetadata while preserving the historical wire shape that always marshals the usageMetadata field.
relaykit/dto/gemini.go:568
MethodUnmarshalJSON
(data []byte)
relaykit/dto/values.go:12
MethodUnmarshalJSON
(b []byte)
relaykit/dto/values.go:34
MethodUnmarshalJSON
(data []byte)
relaykit/dto/values.go:63
MethodUnmarshalJSON
(data []byte)
relaykit/dto/openai_image.go:79
MethodUnmarshalJSON
(data []byte)
setting/request_plugin_setting/config.go:37
MethodUnmarshalJSON
(data []byte)
relay/common/relay_info.go:1079
FunctionUnmarshalMetadata
UnmarshalMetadata converts a map[string]any metadata to a typed struct via JSON round-trip. This replaces the repeated pattern: json.Marshal(metadata)
relay/channel/task/taskcommon/helpers.go:16
MethodUnmarshalMetadata
(v any)
relay/common/relay_info.go:1125
MethodUnwrap
()
controller/plugin_protocol_limiter.go:42
MethodUnwrap
()
controller/video_proxy.go:50
MethodUnwrap
()
model/passkey_option.go:43
MethodUnwrap
()
pkg/jsplugin/engine.go:81
MethodUnwrap
()
pkg/jsplugin/transform.go:202
MethodUnwrap
Unwrap enables errors.Is / errors.As to work with NewAPIError by exposing the underlying error.
relaykit/types/error.go:105
MethodUnwrap
()
relaykit/relayconvert/reasoning/intent.go:37
MethodUnwrap
Unwrap lets http.ResponseController reach the client connection once a plugin route answers, as a relayed stream that stopped early needs to cut it of
router/plugin-router.go:576
MethodUnwrap
Unwrap lets http.ResponseController reach the connection.
relay/helper/stream_scanner.go:116
MethodUnwrap
Unwrap lets http.ResponseController reach the connection.
relay/requestplugin/reply.go:884
MethodUnwrap
Unwrap lets http.ResponseController reach the connection.
relay/requestplugin/report.go:99
MethodUpdate
Update Make sure your token's fields is completed, because this will update non-zero values
model/redemption.go:206
FunctionUpdateAccessToken
UpdateAccessToken renames a token without verification. Changing the grant is checked in full before the proof is consumed, like creation.
controller/access_token.go:191
FunctionUpdateAllChannelsBalance
UpdateAllChannelsBalance queues an update of all balances as a system task and answers at once with its task id. When one is already queued or running
controller/channel-billing.go:830
FunctionUpdateChannelBalance
(c *gin.Context)
controller/channel-billing.go:712
FunctionUpdateChannelStatus
(c *gin.Context)
controller/channel.go:1487
FunctionUpdateCheckerSection
(props: UpdateCheckerSectionProps)
web/src/features/system-settings/maintenance/update-checker-section.tsx:32
FunctionUpdateConfigDialog
({ open, onOpenChange, deploymentId, }: { open: boolean onOpenChange: (open: boolean) => void depl
web/src/features/models/components/dialogs/update-config-dialog.tsx:81
FunctionUpdateCustomOAuthProvider
UpdateCustomOAuthProvider updates an existing custom OAuth provider
controller/custom_oauth.go:291
FunctionUpdateDeployment
(c *gin.Context)
controller/deployment.go:400
FunctionUpdateDeploymentName
(c *gin.Context)
controller/deployment.go:345
FunctionUpdateModelMeta
UpdateModelMeta 更新模型
controller/model_meta.go:140
FunctionUpdateModelPricingConfig
(c *gin.Context)
controller/model_pricing_config.go:68
FunctionUpdatePasskeyDomains
(c *gin.Context)
controller/option.go:143
FunctionUpdatePrefillGroup
UpdatePrefillGroup 更新预填组
controller/prefill_group.go:51
FunctionUpdateProgress
(id int, progress string)
model/midjourney.go:160
FunctionUpdateRedemption
(c *gin.Context)
controller/redemption.go:145
FunctionUpdateRequestPolicy
(c *gin.Context)
controller/request_policy.go:14
FunctionUpdateSelf
(c *gin.Context)
controller/user.go:782
FunctionUpdateSubscriptionPreference
(c *gin.Context)
controller/subscription.go:76
FunctionUpdateUser
(c *gin.Context)
controller/user.go:652
FunctionUpdateUserOAuthBinding
UpdateUserOAuthBinding updates an existing OAuth binding (e.g., rebind to different OAuth account)
model/user_oauth_binding.go:108
FunctionUpdateVendorMeta
UpdateVendorMeta 更新供应商
controller/vendor_meta.go:61
MethodUpdateWithStatus
UpdateWithStatus performs a conditional UPDATE guarded by fromStatus (CAS). Returns (true, nil) if this caller won the update, (false, nil) if another
model/midjourney.go:194
FunctionUploadDialog
(props: UploadDialogProps)
web/src/features/task-plugins/components/upload-dialog.tsx:62
FunctionUploadRateLimit
()
middleware/rate-limit.go:212
FunctionUpstreamModelSelection
(props: UpstreamModelSelectionProps)
web/src/features/channels/components/upstream-model-selection.tsx:197
FunctionUpstreamRatioSync
()
web/src/features/system-settings/models/upstream-ratio-sync.tsx:97
FunctionUpstreamRatioSyncTable
(props: UpstreamRatioSyncTableProps)
web/src/features/system-settings/models/upstream-ratio-sync-table.tsx:78
FunctionUpstreamUpdateDialog
(props: UpstreamUpdateDialogProps)
web/src/features/channels/components/dialogs/upstream-update-dialog.tsx:61
← previousnext →14,301–14,400 of 15,409, ranked by callers