MCPcopy Create free account

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

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

FunctionTestMediaReencode
(t *testing.T)
relay/requestplugin/requestplugin_test.go:446
FunctionTestMediaReencodeLosslessWebP
(t *testing.T)
relay/requestplugin/requestplugin_test.go:620
FunctionTestMediaTextEffect
media.text rewrites a text file of the body. Any other file goes on as it is and is recorded as not rewritable; a media number that does not exist fai
relay/requestplugin/attachments_test.go:263
FunctionTestMergeBillingUsageORsEstimatedOnSameAndCrossDialect
(t *testing.T)
relaykit/dto/usage_merge_test.go:204
FunctionTestMergeClaudeUsageCacheCreationReplacesWholeObject
(t *testing.T)
relaykit/dto/usage_merge_test.go:11
FunctionTestMergeClaudeUsageNonZeroPreservesBillingUsage
(t *testing.T)
relaykit/dto/usage_merge_test.go:230
FunctionTestMergeExplicitAndSuffix
(t *testing.T)
relaykit/relayconvert/reasoning/intent_test.go:12
FunctionTestMergeGeminiUsageMetadataCandidatesAndThoughtsReplacedAsPair
(t *testing.T)
relaykit/dto/usage_merge_test.go:31
FunctionTestMergeGeminiUsageMetadataStreamDetailsAreCumulativeSnapshots
(t *testing.T)
relaykit/dto/usage_merge_test.go:104
FunctionTestMergeModelNames
(t *testing.T)
controller/channel_upstream_update_test.go:433
FunctionTestMergeToolSurchargeItemsSaturatesCountOverflow
(t *testing.T)
service/text_quota_test.go:1417
FunctionTestMergeUsageNonZeroCacheCreationInputTokensReplacesWithoutAdding
(t *testing.T)
relaykit/dto/usage_merge_test.go:397
FunctionTestMergeUsageNonZeroKeepsPositiveValuesAndTakesMaxTotal
(t *testing.T)
relaykit/dto/usage_merge_test.go:281
FunctionTestMessageStartZeroOutputSidecarRemainsRefreshable
(t *testing.T)
relaykit/relayconvert/internal/claude_messages/stream_billing_usage_test.go:11
FunctionTestMetaDecoderRejectsLossyOrUnknownRoutingFields
(t *testing.T)
pkg/jsplugin/routing_test.go:1007
FunctionTestMetaProtocolSupports
(t *testing.T)
pkg/jsplugin/protocol_supports_test.go:201
FunctionTestMetadataSyncLocaleAndEndpointValidation
(t *testing.T)
controller/model_management_test.go:1070
FunctionTestMidjourneyPolicyAcceptance
(t *testing.T)
service/channel_affinity_template_test.go:361
FunctionTestMidjourneyRefundRestoresEveryAccountingElementOnBillingChannel
(t *testing.T)
service/task_billing_test.go:640
FunctionTestMigratePrefillGroupUniquenessMySQL
(t *testing.T)
model/prefill_group_migration_test.go:65
FunctionTestMigratePrefillGroupUniquenessPostgreSQL
(t *testing.T)
model/prefill_group_migration_test.go:79
FunctionTestMigratePrefillGroupUniquenessSQLite
(t *testing.T)
model/prefill_group_migration_test.go:59
FunctionTestMigrateRetiredFrontendOptionsKeepsAuthoritativeTargets
(t *testing.T)
model/frontend_option_migration_test.go:132
FunctionTestMigrateRetiredFrontendOptionsKeepsEmptyAuthoritativeTargets
(t *testing.T)
model/frontend_option_migration_test.go:151
FunctionTestMigrateRetiredFrontendOptionsMigratesValidValuesIdempotently
(t *testing.T)
model/frontend_option_migration_test.go:43
FunctionTestMigrateRetiredFrontendOptionsPreservesMalformedValuesAndContinues
(t *testing.T)
model/frontend_option_migration_test.go:104
FunctionTestMigrateRetiredFrontendOptionsPreservesMixedInvalidFAQ
(t *testing.T)
model/frontend_option_migration_test.go:122
FunctionTestMigrateSensitiveWords
The old words become one global request-filter instance after the saved ones, enabled when both old switches were on; the old options go, and a second
model/sensitive_word_migration_test.go:24
FunctionTestMigrateSensitiveWordsWithoutWords
(t *testing.T)
model/sensitive_word_migration_test.go:88
FunctionTestMigrateTokenKeyUniquenessMySQL
(t *testing.T)
model/token_migration_test.go:70
FunctionTestMigrateTokenKeyUniquenessPostgreSQL
(t *testing.T)
model/token_migration_test.go:84
FunctionTestMigrateTokenKeyUniquenessSQLite
(t *testing.T)
model/token_migration_test.go:64
FunctionTestMigrationSchemaStability
(t *testing.T)
model/migration_dialector_test.go:60
FunctionTestMixedCacheFields
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:629
FunctionTestMixedCacheFields_AllCacheZero
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:641
FunctionTestModelDeletionDatabaseMatrix
(t *testing.T)
controller/model_management_test.go:1297
FunctionTestModelFamily
(t *testing.T)
tokenkit/tokenkit_test.go:13
FunctionTestModelListRouteNeedsConvertResponseAlone
(t *testing.T)
pkg/jsplugin/provider_test.go:179
FunctionTestModelManagementDatabaseMatrix
(t *testing.T)
controller/model_management_test.go:483
FunctionTestModelMemoryRateLimitRejectionsReturnOpenAIError
The memory limiter answers like the Redis limiter: an OpenAI error body naming the limit that was reached, not an empty 429.
middleware/model_rate_limit_test.go:111
FunctionTestModelMemoryRateLimitReservesConcurrentSuccessAdmission
(t *testing.T)
middleware/model_rate_limit_test.go:82
FunctionTestModelModifierNamesRouteWithAndWithoutMemoryCache
(t *testing.T)
model/task_plugin_channel_select_test.go:121
FunctionTestModelModifiersUpstreamFields
Explicit @ modifiers reach DeepSeek as its own thinking switch and effort in every format and override the client's reasoning fields: no budget_tokens
relay/channel/deepseek/adaptor_test.go:148
FunctionTestModelPriceHelperCanonicalBillingLadder
(t *testing.T)
relay/helper/price_test.go:420
FunctionTestModelPriceHelperDeepSeekThinkingTailsBillAtBase
DeepSeek thinking tails and @ modifiers bill at the base model's built-in expression; a name on the thinking-suffix blacklist stays opaque and needs i
relay/helper/price_test.go:652
FunctionTestModelPriceHelperExemptAtNameBillsVerbatim
(t *testing.T)
relay/helper/price_test.go:580
FunctionTestModelPriceHelperHonorsCustomClaudeThinkingAlias
(t *testing.T)
relay/helper/price_test.go:383
FunctionTestModelPriceHelperMigratesLegacyGeminiWildcardToCanonical
(t *testing.T)
relay/helper/price_test.go:513
FunctionTestModelPriceHelperModifierNameFallsBackToBase
(t *testing.T)
relay/helper/price_test.go:550
FunctionTestModelPriceHelperNativeGeminiNoThinkingDoesNotAliasBillingModel
(t *testing.T)
relay/helper/price_test.go:703
FunctionTestModelPriceHelperPreservesGpt51CodexMaxIdentity
(t *testing.T)
relay/helper/price_test.go:617
FunctionTestModelPriceHelperRequestBillingRatiosOnlyApplyToFixedPrice
(t *testing.T)
relay/helper/price_test.go:225
FunctionTestModelPriceHelperTieredInputPreConsumeMultiplier
(t *testing.T)
relay/helper/price_test.go:115
FunctionTestModelPriceHelperTieredRejectsPreConsumeOverflow
(t *testing.T)
relay/helper/price_test.go:186
FunctionTestModelPriceHelperTieredUsesPreloadedRequestInput
(t *testing.T)
relay/helper/price_test.go:26
FunctionTestModelPriceHelperUsesSuffixedOriginLikeMain
Pricing identity is resolved once in ModelPriceHelper via the candidate ladder: raw name (only when it has no @ modifiers) → canonical base@effort:E@t
relay/helper/price_test.go:323
FunctionTestModelPricingConversionAcceptsDeclaredEndpointArray
Model metadata may declare endpoints either as a type array or as a path map. Conversion must understand both; reading only the map form made every mo
controller/model_pricing_conversion_endpoints_test.go:16
FunctionTestModelPricingConversionDatabaseMatrix
(t *testing.T)
controller/model_management_test.go:112
FunctionTestModelPricingIssuesFollowPluginChanges
Prices saved while a plugin fit stop fitting when it changes: a dropped model leaves its provider price stale, and a new provider without the usage th
model/pricing_usage_schema_test.go:456
FunctionTestModelPricingSnapshotListsUsedBuiltinPrices
The full snapshot lists a built-in price, with its expression as the editor default, once the price is saved or an enabled channel serves the model. A
model/pricing_usage_schema_test.go:543
FunctionTestModelRateLimitCountsConfiguredGroupsSeparately
A group with its own limit counts each user's requests on its own; groups without one keep sharing the user's global limit.
middleware/model_rate_limit_test.go:147
FunctionTestModelRateLimitStreamFailuresDoNotConsumeSuccessLimit
(t *testing.T)
middleware/model_rate_limit_test.go:48
FunctionTestModelRedisRateLimitUsesUTCRegardlessOfLocalTimezone
(t *testing.T)
middleware/model_rate_limit_test.go:22
FunctionTestModelsBulkActions
({ table }: { table: TanStackTable<ModelRow> })
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:1400
FunctionTestMultiKeyEnableRestoresOnlyExhaustedChannels
(t *testing.T)
controller/channel_multi_key_test.go:19
FunctionTestMultimodalEmbeddingResponse
The native response becomes an OpenAI embedding list. prompt_tokens is all billable input and image_tokens its visual part, priced at the image ratio;
relay/channel/ali/adaptor_test.go:417
FunctionTestMultipartBodyStorageReplaysFilesAndFields
(t *testing.T)
common/body_storage_test.go:118
FunctionTestMultiprotocolGatewayEndpointTypes
(t *testing.T)
controller/channel_test_internal_test.go:150
FunctionTestNativePresentersChooseTheVendorsStatus
A native presenter answers with the vendor's own status by returning a reply wrapper; anything else it returns is a 200 JSON body.
middleware/task_plugin_test.go:2632
FunctionTestNativeRouteCredentialFormsAuthenticateThroughTokenAuth
On the built-in plugin whose vendor uses it, a native route takes the gateway token in that vendor's API-key form; everywhere else only the Bearer for
router/plugin_router_test.go:930
FunctionTestNativeRouteCredentialRewritesOnlyTheVendorsOwnForm
(t *testing.T)
middleware/task_plugin_test.go:2668
FunctionTestNativeRouteDecodesTheIngressBody
On a native route the plugin decodes the body again after ingress changed it, so the vendor receives the changed prompt.
controller/plugin_native_e2e_test.go:587
FunctionTestNeedsLoginCredentialFailsWithoutReachingTheUpstream
A key whose credential needs a new login never reaches the upstream: the request disables the key for the reason a login clears, whatever the automati
router/provider_plugin_relay_test.go:598
FunctionTestNewAPIChannelPluginBindingsRequireBindPermission
(t *testing.T)
controller/channel_task_plugin_bind_test.go:181
FunctionTestNewAPIChannelRegistration
(t *testing.T)
controller/channel_test_internal_test.go:117
FunctionTestNewAPIChannelServesExtendedTaskPlugins
(t *testing.T)
model/task_plugin_channel_select_test.go:84
FunctionTestNewAwsInvokeContextInheritsParent
(t *testing.T)
relay/channel/aws/relay_aws_test.go:322
FunctionTestNewAwsInvokeErrorSkipsRetryOnlyForClientCancellation
(t *testing.T)
relay/channel/aws/relay_aws_test.go:353
FunctionTestNewClaudeMessagesBillingUsageRequiresTokenContent
(t *testing.T)
relaykit/dto/billing_usage_test.go:23
FunctionTestNewEstimatedGeminiChatBillingUsage
(t *testing.T)
relaykit/dto/billing_usage_test.go:110
FunctionTestNewGeminiChatBillingUsageRequiresTokenContent
(t *testing.T)
relaykit/dto/billing_usage_test.go:11
FunctionTestNewOpenAIChatBillingUsageRequiresTokenContent
(t *testing.T)
relaykit/dto/billing_usage_test.go:40
FunctionTestNewOutboundJSONBody_GetBodyAfterPartialRead
(t *testing.T)
relay/common/outbound_body_test.go:40
FunctionTestNewOutboundJSONBody_GetBodyReadersAreIndependent
(t *testing.T)
relay/common/outbound_body_test.go:115
FunctionTestNewOutboundJSONBody_GetBodyReadersAreIndependent_DiskStorage
TestNewOutboundJSONBody_GetBodyReadersAreIndependent_DiskStorage runs the same independence assertions against the disk-backed storage. Deliberately n
relay/common/outbound_body_test.go:137
FunctionTestNewOutboundJSONBody_GetBodyReplaysFullBody
(t *testing.T)
relay/common/outbound_body_test.go:12
FunctionTestNewSMTPClientHonorsExplicitStartTLSWhenPortIs465
(t *testing.T)
common/email_test.go:383
FunctionTestNewSMTPClientKeepsImplicitTLSForLegacyPort465
(t *testing.T)
common/email_test.go:406
FunctionTestNewSSRFProtectionFromFetchSettingParsesPortRanges
(t *testing.T)
common/ssrf_protection_test.go:53
FunctionTestNewStreamScannerCallerLimit
(t *testing.T)
relay/helper/stream_scanner_test.go:671
FunctionTestNewStreamScanner_AllowsLargeStreamLine
(t *testing.T)
relay/helper/stream_scanner_test.go:148
FunctionTestNewTaskAPIRequestInheritsClientCancellation
(t *testing.T)
relay/channel/api_request_test.go:15
FunctionTestNoAvailableChannelMessageWithoutPlugin
(t *testing.T)
middleware/distributor_test.go:357
FunctionTestNodeSyncAppliesAnOptionAnotherNodeWrote
(t *testing.T)
service/node_sync_test.go:127
FunctionTestNodeSyncCapsWhatTheRegistryRowCarries
(t *testing.T)
service/node_sync_test.go:364
FunctionTestNodeSyncReloadsATopicWhoseStartupLoadFailed
A topic whose startup load failed is not marked applied at startup: the node reports the error and the first tick loads the topic again.
service/node_sync_test.go:283
FunctionTestNodeSyncReloadsTopicsWhoseRevisionChanged
(t *testing.T)
service/node_sync_test.go:69
FunctionTestNodeSyncStatusComparesEveryNodeWithTheLatestRevision
Each node is judged by the topics it keeps: the status lists those of this node and of every online node, and a node that reports other topics but not
service/node_sync_test.go:155
FunctionTestNodeSyncWithoutStartupRevisionsReportsEveryTopicUnapplied
Without the startup revisions every registered topic stays unapplied, and the node reports each one as not synced until the first tick loads it.
service/node_sync_test.go:314
FunctionTestNonTerminalUpdate_NoBilling
(t *testing.T)
service/task_billing_test.go:1373
← previousnext →12,801–12,900 of 15,409, ranked by callers