MCPcopy Create free account

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

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

FunctionTestUserUpdateDoesNotOverwriteConcurrentAccountingOrTokenChanges
(t *testing.T)
model/user_update_test.go:47
FunctionTestUtilsParamOverrideOnlyInOutbound
(t *testing.T)
pkg/jsplugin/provider_test.go:1041
FunctionTestUtilsSignRS256BuildsVerifiableJWT
(t *testing.T)
pkg/jsplugin/engine_test.go:150
FunctionTestUtilsSigningEncodingsAndErrors
(t *testing.T)
pkg/jsplugin/engine_test.go:200
FunctionTestUtilsSigningReproducesPublishedVectors
TestUtilsSigningReproducesPublishedVectors rebuilds published request signatures in plugin JavaScript from utils.sha256 and utils.hmacSHA256, with the
pkg/jsplugin/engine_test.go:80
FunctionTestVLLMStatusInvalidAndOversizedResponses
(t *testing.T)
controller/channel_inference_test.go:84
FunctionTestVLLMStatusLive
Opt-in verification against an operator-provided instance; credentials stay in the environment.
controller/channel_inference_test.go:140
FunctionTestVLLMStatusPartialFailureAndCredentials
(t *testing.T)
controller/channel_inference_test.go:19
FunctionTestVLLMStatusRejectsInvalidTargetsAndRedirects
(t *testing.T)
controller/channel_inference_test.go:59
FunctionTestValidateAccessTokenStopsAtLegacyDeadline
(t *testing.T)
model/user_update_test.go:465
FunctionTestValidateAndFillRejectsPasswordlessUser
(t *testing.T)
model/user_update_test.go:344
FunctionTestValidateAuthSessionWithTxChecksAccessTokenIdentity
(t *testing.T)
model/user_update_test.go:571
FunctionTestValidateBackupCodeCanOnlySucceedOnce
(t *testing.T)
model/user_authentication_test.go:211
FunctionTestValidateChannelProxy
(t *testing.T)
controller/channel_test_internal_test.go:53
FunctionTestValidateChannelRequestPlugins
(t *testing.T)
controller/channel_task_plugin_validation_test.go:122
FunctionTestValidateChannelRequiresNewAPIBaseURL
(t *testing.T)
controller/channel_test_internal_test.go:88
FunctionTestValidateChannelTestConcurrency
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:85
FunctionTestValidateClaudeDefaultMaxTokens
(t *testing.T)
setting/model_setting/claude_test.go:65
FunctionTestValidateConfig
(t *testing.T)
pkg/jsplugin/registry_test.go:1443
FunctionTestValidateConfigExport
An exported validateConfig runs after the schema check, on the config with its defaults, and its throw is the error the administrator sees.
pkg/jsplugin/registry_test.go:1518
FunctionTestValidateCreditedQuotaRejectsOverflow
(t *testing.T)
controller/topup_quota_limit_test.go:171
FunctionTestValidateGeminiSafetySettings
(t *testing.T)
setting/model_setting/gemini_test.go:72
FunctionTestValidateMultipartDirectNormalizesImageField
(t *testing.T)
relay/common/relay_utils_test.go:59
FunctionTestValidateNewAPIChannelTaskPluginExtensions
(t *testing.T)
controller/channel_task_plugin_validation_test.go:76
FunctionTestValidateOptionValueRejectsInvalidMaxTokenAutoGroups
(t *testing.T)
model/option_auto_group_test.go:10
FunctionTestValidateOptionValueRejectsSystemTaskRetentionBelowOneDay
(t *testing.T)
model/option_auto_group_test.go:19
FunctionTestValidateRedirectURL
(t *testing.T)
common/url_validator_test.go:12
FunctionTestValidateRequestURL
(t *testing.T)
pkg/jsplugin/engine_test.go:1277
FunctionTestValidateTaskArtifactBaseURLOnlyAcceptsSafeAbsoluteHTTPURLs
(t *testing.T)
service/task_artifact_access_test.go:79
FunctionTestValidateTaskArtifactStoreConfig
(t *testing.T)
setting/system_setting/task_artifact_store_test.go:10
FunctionTestValidateTaskPluginChannel
(t *testing.T)
controller/channel_task_plugin_validation_test.go:19
FunctionTestValidateTaskPluginChannelFillsPluginDefaultBaseURL
(t *testing.T)
controller/channel_task_plugin_validation_test.go:49
FunctionTestValidateToolPricesJSON
(t *testing.T)
setting/operation_setting/tools_price_test.go:115
FunctionTestValidateTopUpQuotaReturnsMaximumAmount
(t *testing.T)
controller/topup_quota_limit_test.go:77
FunctionTestValidateV1MetaEnforcesTaskPluginKeyLength
(t *testing.T)
pkg/jsplugin/registry_test.go:63
FunctionTestValuesTypedNilMetaIsSafe
(t *testing.T)
relaykit/relayconvert/convmeta/meta_test.go:11
FunctionTestVendorManagementDatabaseMatrix
(t *testing.T)
controller/model_management_test.go:1085
FunctionTestVeoParseTaskResultTreatsMissingDoneAsInProgress
Google long-running operations serialize proto3 defaults by omission: a still-running operation has no `done` key at all. Treating that as unrecognize
plugins/veo_poll_test.go:17
FunctionTestVertexAIDeliversInlineVideoByFetchingTheOperationAgain
An inline video does not fit the stored operation, which keeps only its media type: the artifact is downloaded by fetching the operation again and rea
plugins/vertex_ai_responses_test.go:289
FunctionTestVertexAIOmniBuildSubmitRequest
Gemini Omni submits a background interaction on the global endpoint.
plugins/vertex_ai_responses_test.go:338
FunctionTestVertexAIOmniQueryAndParse
(t *testing.T)
plugins/vertex_ai_responses_test.go:409
FunctionTestVertexAIOmniUsageAndVideoDecoder
The OpenAI video decoder leaves Gemini Omni's duration and resolution to the request builder, which allows what Veo does not.
plugins/vertex_ai_responses_test.go:479
FunctionTestVertexAIRegionFromChannelOther
The Vertex AI driver reads its region from the channel's region field, as the built-in Vertex AI channel does: a plain region, or a JSON map of model
plugins/vertex_ai_region_test.go:16
FunctionTestVertexAIResponsesProtocol
(t *testing.T)
plugins/vertex_ai_responses_test.go:17
FunctionTestVertexAIThroughNewAPIGateway
A New API channel reaches Vertex AI through another gateway's /vertex-ai route, which runs the request in the gateway's own project. Operation names c
plugins/vertex_ai_responses_test.go:212
FunctionTestVertexResolutionRatioPrefersMostSpecificModelPattern
(t *testing.T)
setting/task_pricing_setting/config_test.go:21
FunctionTestVideoGenerationsIsNotClaimedByOpenAIVideoProtocol
(t *testing.T)
middleware/task_plugin_test.go:1198
FunctionTestViduMetadataCannotChangeWhatIsBilled
metadata carries Vidu's other fields but cannot replace the model, duration or resolution the request is billed for.
plugins/vidu_responses_test.go:44
FunctionTestViduNativeBodies
Native routes send Vidu's own body as is, for Vidu to check.
plugins/vidu_responses_test.go:242
FunctionTestViduResponsesProtocol
(t *testing.T)
plugins/vidu_responses_test.go:14
FunctionTestViduThroughNewAPIGateway
A New API channel reaches Vidu through another gateway's /vidu routes. The gateway rebuilds the request this driver sent, so Vidu receives one body an
plugins/vidu_responses_test.go:68
FunctionTestViduVideosProtocolTakesAnyModel
v1/videos takes any model: one the endpoint does not list gets the defaults of Vidu's current models, which the body states, and a client cannot pass
plugins/vidu_responses_test.go:163
FunctionTestWaffoPancakeWebhookEnabledRequiresTopUpAndWebhookConfig
(t *testing.T)
controller/payment_webhook_availability_test.go:130
FunctionTestWaffoWebhookEnabledRequiresTopUpAndWebhookConfig
(t *testing.T)
controller/payment_webhook_availability_test.go:85
FunctionTestWalletQuotaFromDecimalStrict
(t *testing.T)
common/quota_math_test.go:131
FunctionTestWanEndpointsDistinguishImagesFromVideos
(t *testing.T)
common/model_test.go:11
FunctionTestWebCacheHeadersDoNotLeakOntoPluginRoutes
(t *testing.T)
router/plugin_router_test.go:231
FunctionTestWebConsoleMessageResponse
Web console responses carry the English source text as message_key plus its params, and the web console translates them. The backend sends the same bo
i18n/i18n_test.go:161
FunctionTestWebFallbackDoesNotCacheMissingAPIOrAssets
(t *testing.T)
router/plugin_router_test.go:1116
FunctionTestWriteAuthSessionErrorMapsSessionGrowthLimits
(t *testing.T)
controller/auth_session_test.go:70
FunctionTestWriteVideoDataURLRejectsOversizedPayloadBeforeDecode
(t *testing.T)
controller/task_generic_test.go:712
FunctionTestWriteVideoDataURLStreamsAndSupportsHead
(t *testing.T)
controller/task_generic_test.go:692
FunctionTestXAIEditSettlesOnOutputResolution
An edit or extension keeps its source's resolution, which xAI never reports, so the plugin reserves the 720p cap and reads the output file's MP4 heade
plugins/xai_responses_test.go:507
FunctionTestXAIModeratedTaskPresentation
Clients see why a charged task has no video, and a downstream gateway running this plugin reads the native status as charged too.
plugins/xai_responses_test.go:462
FunctionTestXAIModeratedVideoKeepsItsCharge
xAI still bills a generation its moderation blocks, and the host refunds every FAILURE task in full, so a blocked video must settle as a charged SUCCE
plugins/xai_responses_test.go:83
FunctionTestXAIResponsesProtocol
(t *testing.T)
plugins/xai_responses_test.go:51
FunctionTestXAIVideoRequests
(t *testing.T)
plugins/xai_responses_test.go:203
FunctionTestZeroTokens
--------------------------------------------------------------------------- Zero tokens --------------------------------------------------------------
pkg/billingexpr/billingexpr_test.go:408
FunctionTextChange
One text before and after, with the changed words marked.
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:276
FunctionTextarea
({ className, ...props }: React.ComponentProps<'textarea'>)
web/src/components/ui/textarea.tsx:23
FunctionThemeConfig
()
web/src/components/config-drawer.tsx:215
FunctionThemeControls
()
web/src/context/__tests__/theme-preferences.test.tsx:39
FunctionThemeCustomizationProvider
(props: { children: React.ReactNode })
web/src/context/theme-customization-provider.tsx:89
FunctionThemeFixture
()
web/src/context/__tests__/theme-preferences.test.tsx:87
FunctionThemeProvider
({ children, defaultTheme = DEFAULT_THEME, storageKey = THEME_STORAGE_KEYS.mode, ...props }: ThemeProv
web/src/context/theme-provider.tsx:75
FunctionThemeQuickSwitcher
()
web/src/components/theme-quick-switcher.tsx:27
FunctionThemeSwitch
()
web/src/components/theme-switch.tsx:33
FunctionThroughputBarChart
(props: { rows: { group: string; throughput_tps: number }[] className?: string })
web/src/features/pricing/components/model-details-charts.tsx:322
FunctionTierPriceFields
(props: TierPriceFieldsProps)
web/src/features/system-settings/models/tier-price-fields.tsx:126
FunctionTimestampCell
(props: TimestampCellProps)
web/src/components/activity-time-cell.tsx:39
FunctionTimingMetricsCell
(props: TimingMetricsCellProps)
web/src/features/usage-logs/components/timing-metrics-cell.tsx:69
FunctionTitledCard
({ title, description, icon, action, children, disableHoverEffect, className, headerClassName,
web/src/components/ui/titled-card.tsx:48
MethodToResponse
(now int64)
model/system_instance.go:88
FunctionToaster
(props: ToasterProps)
web/src/components/ui/sonner.tsx:33
FunctionToggle
({ className, variant = 'default', size = 'default', ...props }: TogglePrimitive.Props & VariantProps<
web/src/components/ui/toggle.tsx:48
FunctionToggleGroup
({ className, variant, size, spacing = 0, orientation = 'horizontal', children, ...props }: Togg
web/src/components/ui/toggle-group.tsx:39
FunctionToggleGroupItem
({ className, children, variant = 'default', size = 'default', ...props }: TogglePrimitive.Props & V
web/src/components/ui/toggle-group.tsx:75
FunctionToggleStatusDialog
()
web/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx:29
FunctionTokenBreakdown
(props: { log: UsageLog; other: LogOtherData })
web/src/features/usage-logs/components/dialogs/details-dialog.tsx:398
FunctionTokenLimitSection
({ defaultValues }: TokenLimitSectionProps)
web/src/features/system-settings/request-limits/token-limit-section.tsx:72
FunctionTokenOrUserAuth
TokenOrUserAuth allows either session-based user auth or API token auth. Used for endpoints that need to be accessible from both the dashboard and API
middleware/auth.go:428
FunctionTokensWithCost
({ tokens, costText, }: { tokens?: number costText?: string })
web/src/components/ai-elements/context.tsx:423
FunctionTool
({ className, ...props }: ToolProps)
web/src/components/ai-elements/tool.tsx:52
FunctionToolContent
({ className, ...props }: ToolContentProps)
web/src/components/ai-elements/tool.tsx:122
FunctionToolHeader
({ className, title, type, state, ...props }: ToolHeaderProps)
web/src/components/ai-elements/tool.tsx:95
FunctionToolInput
({ className, input, ...props }: ToolInputProps)
web/src/components/ai-elements/tool.tsx:136
FunctionToolOutput
({ className, output, errorText, ...props }: ToolOutputProps)
web/src/components/ai-elements/tool.tsx:155
FunctionToolSurchargeMarker
()
web/src/features/usage-logs/components/log-cost-display.tsx:46
FunctionToolbar
({ className, ...props }: ToolbarProps)
web/src/components/ai-elements/toolbar.tsx:26
FunctionTooltip
({ ...props }: TooltipPrimitive.Root.Props)
web/src/components/ui/tooltip.tsx:36
← previousnext →14,201–14,300 of 15,409, ranked by callers