MCPcopy Create free account

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

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

FunctionTestDecodeIconDataURI
(t *testing.T)
pkg/jsplugin/registry_test.go:1053
FunctionTestDecodeJsonWithValidation
(t *testing.T)
common/json_test.go:53
FunctionTestDecodePluginProtocolEventResultEnforcesBounds
(t *testing.T)
relay/plugin_protocol_test.go:123
FunctionTestDecodePluginProtocolEventResultPreservesStatePresence
(t *testing.T)
relay/plugin_protocol_test.go:15
FunctionTestDecodePluginProtocolEventResultValidatesSemanticContract
(t *testing.T)
relay/plugin_protocol_test.go:64
FunctionTestDecodeTransformEffects
(t *testing.T)
pkg/requestpatch/patch_test.go:140
FunctionTestDecompressRequestZstd
(t *testing.T)
middleware/gzip_test.go:43
FunctionTestDecompressRequestZstdEarlyRejectionDoesNotReadBody
(t *testing.T)
middleware/gzip_test.go:146
FunctionTestDeepSeekBuiltinBilling
DeepSeek prices are peak/off-peak expressions in USD per 1M tokens; peak is twice off-peak. The same usage settles to the same quota from a Chat, Resp
setting/billing_setting/builtin_billing_test.go:160
FunctionTestDeepSeekToolRoutingNamesReportTheirEndpoint
v1/models reports the DeepSeek Search and Fetch routing names with their own endpoint on the channels that relay them; chat models keep their list.
common/model_test.go:32
FunctionTestDeepSeekToolsHelper
v1/tools/search and /v1/tools/fetch follow /v1/alpha/search: the raw body reaches /v1/tools/* unchanged and the response returns unchanged. With only
relay/alpha_search_handler_test.go:104
FunctionTestDefaultPolicyAllowsGeminiCodeExecutionToOpenAI
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:35
FunctionTestDeleteActiveOverrideFallsBackToFactoryAndDeletesRecord
(t *testing.T)
controller/task_plugin_test.go:811
FunctionTestDeleteActiveTaskPluginPromotesEnabledVersionInRuntime
(t *testing.T)
controller/task_plugin_test.go:842
FunctionTestDeleteActiveTaskPluginPromotesNewestRemainingVersion
(t *testing.T)
model/task_plugin_test.go:65
FunctionTestDeleteChannelBatchReportsAndAuditsActualDeletedCount
(t *testing.T)
controller/channel_test_internal_test.go:217
FunctionTestDeleteChannelResetsProxyCacheWhenPreReadFails
(t *testing.T)
controller/channel_test_internal_test.go:194
FunctionTestDeleteExpiredUserSessionsLoopsInChunksAndRechecksPredicate
(t *testing.T)
model/user_session_test.go:501
FunctionTestDeleteFinishedSystemTasksDatabaseMatrix
The daily cleanup deletes finished rows older than the retention in batches, and keeps active rows, newer rows and the newest row of each type.
model/system_task_test.go:133
FunctionTestDeletePureFactoryPluginIsRejected
(t *testing.T)
controller/task_plugin_test.go:1720
FunctionTestDeleteRedemptionBatch
(t *testing.T)
controller/redemption_batch_test.go:23
FunctionTestDeleteThirdPartyPluginReportsAssociatedChannelsAndInFlightTasks
(t *testing.T)
controller/task_plugin_test.go:83
FunctionTestDetectAllChannelUpstreamModelUpdatesRejectsExistingActiveTask
(t *testing.T)
controller/channel_upstream_update_test.go:597
FunctionTestDirectOpenAIResponsesKeepsExistingParameters
(t *testing.T)
controller/channel_test_request_test.go:233
FunctionTestDisableFactoryOverrideRowSuppressesBothLayers
(t *testing.T)
controller/task_plugin_test.go:269
FunctionTestDisableFactoryPluginPersistsOptionAndHidesFromBindOptions
(t *testing.T)
controller/task_plugin_test.go:223
FunctionTestDisableFactoryPluginRespectsInUseGuard
(t *testing.T)
controller/task_plugin_test.go:253
FunctionTestDisableThirdPartyPluginSupportsCascadeAndForce
(t *testing.T)
controller/task_plugin_test.go:105
FunctionTestDisabledArtifactStorePreservesPluginUpstreamContent
(t *testing.T)
controller/task_generic_test.go:355
FunctionTestDisabledPricingRequiresRootAuthentication
(t *testing.T)
middleware/header_nav_test.go:102
FunctionTestDisabledTaskArtifactStoreHasNoStorageBehavior
(t *testing.T)
service/task_artifact_store_test.go:14
FunctionTestDisablingUserKeepsAccessTokensAndDeletingRemovesThem
(t *testing.T)
model/user_update_test.go:541
FunctionTestDispatchAdaptorInit
(t *testing.T)
relay/channel/tencent/dispatch_test.go:14
FunctionTestDispatchPlatformUpdateUsesFetchMode
(t *testing.T)
service/task_polling_test.go:291
FunctionTestDistributeHidesTaskPluginDetailsButLogsDiagnostics
(t *testing.T)
middleware/distributor_test.go:281
FunctionTestDistributeHonorsOriginTaskChannelPin
(t *testing.T)
middleware/task_plugin_origin_task_test.go:358
FunctionTestDistributePinViolatingIdentityFilterErrors
(t *testing.T)
middleware/task_plugin_origin_task_test.go:428
FunctionTestDistributeTokenPinBeatsOriginPin
(t *testing.T)
middleware/task_plugin_origin_task_test.go:385
FunctionTestDoAwsClientRequest_AppliesRuntimeHeaderOverrideToAnthropicBeta
(t *testing.T)
relay/channel/aws/relay_aws_test.go:153
FunctionTestDoAwsClientRequest_ForwardsThinkingBlockBindingAndBetaList
(t *testing.T)
relay/channel/aws/relay_aws_test.go:194
FunctionTestDoAwsClientRequest_PreservesSafeguards
(t *testing.T)
relay/channel/aws/relay_aws_test.go:240
FunctionTestDoRequestReturnsUpstreamRedirectWithoutFollowing
(t *testing.T)
relay/channel/api_request_redirect_test.go:19
FunctionTestDoResponseForImageGeneration
(t *testing.T)
relay/channel/minimax/adaptor_test.go:87
FunctionTestDoTaskApiRequest_KeepsReplayableGetBody
TestDoTaskApiRequest_KeepsReplayableGetBody guards against reintroducing the hand-rolled GetBody override that wrapped the already consumed request re
relay/channel/api_request_getbody_test.go:196
FunctionTestDocumentPluginRunsGenericBatchArtifactChain
(t *testing.T)
e2e/doc_parse_test.go:39
FunctionTestDoubaoImageCapabilitiesAreArksToCheck
Ark checks which models stream and which generate groups; the reservation counts a group at its largest.
plugins/doubao_responses_test.go:551
FunctionTestDoubaoImageEndpointMappingKeepsDeclaredModel
Channel model mapping may send a declared Seedream model to an Ark endpoint ID. The declared model still drives capability checks and the image usage
plugins/doubao_responses_test.go:1002
FunctionTestDoubaoImageResponsesDecode
(t *testing.T)
plugins/doubao_responses_test.go:796
FunctionTestDoubaoImageResults
Fixtures mirror real Ark responses captured on 2026-09-18 (signed URLs replaced).
plugins/doubao_responses_test.go:585
FunctionTestDoubaoImageSubmission
(t *testing.T)
plugins/doubao_responses_test.go:113
FunctionTestDoubaoImageValidation
Rejections mirror the Ark API reference; the model-capability cases were confirmed against live 400 responses (2026-09).
plugins/doubao_responses_test.go:490
FunctionTestDoubaoNativeOfficialBodies
Native routes send Ark's own bodies and answer with Ark's own replies.
plugins/doubao_responses_test.go:1049
FunctionTestDoubaoOpenAIImageProtocol
OpenAI Images requests reach Ark with the same body, action and usage facts as the equivalent native request. Host-owned and OpenAI-only fields are no
plugins/doubao_responses_test.go:872
FunctionTestDoubaoRelayedImageStreamSettlement
Once Ark's first event has reached a native client the submission settles and is never refunded. A stream Ark finished bills the images it delivered;
controller/plugin_native_e2e_test.go:276
FunctionTestDoubaoResponsesProtocol
(t *testing.T)
plugins/doubao_responses_test.go:31
FunctionTestDoubaoSeedanceUsageFacts
Capability profiles follow the Ark model list: pricing lists only the resolutions each Seedance model offers, reference video input only on Seedance 2
plugins/doubao_responses_test.go:279
FunctionTestDriverContextCarriesTheChannelConfigAndOther
A driver's ctx carries the plugin config of the task plugin channel it runs on, with its defaults, and on a built-in channel type it serves the channe
relay/channel/task/jsplugin/channel_context_test.go:42
FunctionTestDropPluginCredentials
(t *testing.T)
service/provider_plugin_test.go:767
FunctionTestDryRun
(t *testing.T)
relay/requestplugin/requestplugin_test.go:495
FunctionTestDryRunTaskPluginExecutesHookAndRendererMember
(t *testing.T)
controller/task_plugin_test.go:1349
FunctionTestDryRunTaskPluginReportsUnknownHook
(t *testing.T)
controller/task_plugin_test.go:1362
FunctionTestDryRunTaskPluginSurfacesBadArgumentErrors
(t *testing.T)
controller/task_plugin_test.go:1372
FunctionTestEffectLimits
(t *testing.T)
pkg/requestpatch/patch_test.go:193
FunctionTestEmailKeyStatusIsDerivedAndReadOnly
(t *testing.T)
controller/email_delivery_test.go:236
FunctionTestEmailOptionsNeverReturnResendCredentials
(t *testing.T)
controller/email_delivery_test.go:142
FunctionTestEmailProviderCannotActivateIncompleteResend
(t *testing.T)
controller/email_delivery_test.go:172
FunctionTestEmailProviderOptionRejectsInvalidValues
(t *testing.T)
controller/email_delivery_test.go:155
FunctionTestEmbeddingRequestByModel
Bailian multimodal embedding models are served only by the native multimodal-embedding endpoint, which takes input.contents; text embedding models kee
relay/channel/ali/adaptor_test.go:345
FunctionTestEmbeddingTokenCountMetaCountsChatStyleParts
Embedding input can mix bare strings with chat-style parts; text parts count as text and image and video parts as files, like chat message content.
relaykit/dto/token_count_meta_test.go:104
FunctionTestEmptyConfigurationChangesNothing
(t *testing.T)
relay/requestplugin/requestplugin_test.go:356
FunctionTestEngineBoundsConcurrentCallsAndCancelsAnOccupiedRuntime
(t *testing.T)
pkg/jsplugin/engine_test.go:846
FunctionTestEngineCallsESMExportWithInjectedUtils
(t *testing.T)
pkg/jsplugin/engine_test.go:42
FunctionTestEngineConsoleLogUsesDebugLoggerAndRequestContext
(t *testing.T)
pkg/jsplugin/engine_test.go:566
FunctionTestEngineDoesNotReinitializeIdleRuntimeAfterGC
(t *testing.T)
pkg/jsplugin/engine_test.go:756
FunctionTestEngineExportInterruptsLongRunningGetter
(t *testing.T)
pkg/jsplugin/engine_test.go:1193
FunctionTestEngineExportReturnsThrownGetterError
(t *testing.T)
pkg/jsplugin/engine_test.go:1207
FunctionTestEngineFetchContract
(t *testing.T)
pkg/jsplugin/engine_test.go:876
FunctionTestEngineFetchLendsItsExecutionSlot
(t *testing.T)
pkg/jsplugin/engine_test.go:961
FunctionTestEngineFetchWaitDoesNotCountTowardCallTimeout
(t *testing.T)
pkg/jsplugin/engine_test.go:993
FunctionTestEngineHasExportUsesBindingsAsLoaded
(t *testing.T)
pkg/jsplugin/engine_test.go:1083
FunctionTestEngineHookErrorExtractsSanitizedJSMessage
(t *testing.T)
pkg/jsplugin/engine_test.go:1107
FunctionTestEngineIdleRuntimeReleasesLastCallArguments
(t *testing.T)
pkg/jsplugin/engine_test.go:770
FunctionTestEngineInterruptsAFetchThatCannotResume
(t *testing.T)
pkg/jsplugin/engine_test.go:1020
FunctionTestEngineInterruptsLongRunningHook
(t *testing.T)
pkg/jsplugin/engine_test.go:689
FunctionTestEngineJSONCloneProducesIndependentNativeContainers
(t *testing.T)
pkg/jsplugin/engine_test.go:253
FunctionTestEngineMemoryLimitFollowsSetting
(t *testing.T)
pkg/jsplugin/engine_test.go:735
FunctionTestEngineMemoryLimitIsPerHookCall
(t *testing.T)
pkg/jsplugin/engine_test.go:706
FunctionTestEngineNestedHooksRequireOwnProperties
(t *testing.T)
pkg/jsplugin/engine_test.go:1222
FunctionTestEnginePreservesMutableExportAndMemberBindings
(t *testing.T)
pkg/jsplugin/engine_test.go:1063
FunctionTestEngineRawJSONArgumentsMatchDecodedArguments
(t *testing.T)
pkg/jsplugin/engine_test.go:302
FunctionTestEngineReportsProtocolAdmissionTimeoutSeparately
(t *testing.T)
pkg/jsplugin/engine_test.go:1165
FunctionTestEnqueueSystemTaskReportsCreatedAndExistingActive
(t *testing.T)
service/system_task_test.go:210
FunctionTestEnsureEmailAvailableRejectsExistingEmailCaseInsensitive
(t *testing.T)
model/user_update_test.go:238
FunctionTestEnsureLogRequestId
(t *testing.T)
model/clickhouse_log_test.go:132
FunctionTestEpayCallbacksVerifyBeforeSettlement
(t *testing.T)
controller/payment_webhook_availability_test.go:323
FunctionTestEpayRSAModeSignsOrdersAndVerifiesCallbacks
(t *testing.T)
controller/payment_webhook_availability_test.go:363
FunctionTestEpayWebhookEnabledRequiresTopUpAndWebhookConfig
(t *testing.T)
controller/payment_webhook_availability_test.go:160
FunctionTestErrorHooksRemainDistinct
(t *testing.T)
relaykit/relayconvert/kitutil/log_test.go:9
FunctionTestEstimateUsesFamilyWeights
(t *testing.T)
tokenkit/tokenkit_test.go:41
FunctionTestEventStreamReaderDecodesMessages
(t *testing.T)
relay/channel/providerplugin/eventstream_test.go:36
← previousnext →12,301–12,400 of 15,409, ranked by callers