MCPcopy Create free account

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

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

FunctionTestSecurityEnrollmentVerifyRequiresDedicatedFlowForInteractiveMethods
(t *testing.T)
controller/security_enrollment_test.go:1164
FunctionTestSecurityFactorMutationsAdvanceUserAuthVersion
(t *testing.T)
model/user_authentication_test.go:276
FunctionTestSecurityLoginAllPrimaryTransportsRequireAdditionalVerification
(t *testing.T)
controller/auth_flow_test.go:334
FunctionTestSecurityLoginCodeCompletesOnce
(t *testing.T)
controller/auth_flow_test.go:70
FunctionTestSecurityLoginFactorStateDoesNotAddPasswordLoginQueries
(t *testing.T)
controller/auth_flow_test.go:298
FunctionTestSecurityLoginPasskeyCanManageTwoFAWithScopedProofs
(t *testing.T)
controller/auth_flow_test.go:437
FunctionTestSecurityLoginPasskeyCannotCompleteAnotherChallenge
(t *testing.T)
controller/auth_flow_test.go:408
FunctionTestSecurityLoginPasskeyConcurrentCompletionCreatesOneSession
(t *testing.T)
controller/auth_flow_test.go:225
FunctionTestSecurityLoginPasskeyDoesNotRequireAdditionalTwoFA
(t *testing.T)
controller/auth_flow_test.go:161
FunctionTestSecurityLoginRegisteredPasskeyRequiresUserVerification
(t *testing.T)
controller/auth_flow_test.go:509
FunctionTestSecurityLoginRejectsChangedOrExpiredAuthorization
(t *testing.T)
controller/auth_flow_test.go:118
FunctionTestSecurityLoginRequiresConfiguredFactors
(t *testing.T)
controller/auth_flow_test.go:550
FunctionTestSecurityLoginSessionFailureRollsBackChallengeConsumption
(t *testing.T)
controller/auth_flow_test.go:266
FunctionTestSecurityProofBindsAccessTokenSession
(t *testing.T)
service/auth_token_test.go:165
FunctionTestSecurityProofBindsIdentityAndOperation
(t *testing.T)
service/auth_token_test.go:127
FunctionTestSecurityRoutesDisableCachingBeforeAuthentication
(t *testing.T)
router/plugin_router_test.go:1134
FunctionTestSelectChannelsForAutomaticTestAutoBanOnlyUsesEligibleChannels
(t *testing.T)
controller/channel_test_internal_test.go:356
FunctionTestSelectChannelsForAutomaticTestPassiveRecoveryOnlyUsesAutoDisabled
(t *testing.T)
controller/channel_test_internal_test.go:329
FunctionTestSelectChannelsForAutomaticTestScheduledSkipsManualDisabled
(t *testing.T)
controller/channel_test_internal_test.go:342
FunctionTestSelectResponsesWSChannelAcceptsNativeResponsesChannelTypes
(t *testing.T)
relay/responses_websocket_test.go:151
FunctionTestSelectResponsesWSChannelHonorsPinsAndFilters
(t *testing.T)
relay/responses_websocket_test.go:76
FunctionTestSelectResponsesWSChannelHonorsStrictSessionBinding
Session affinity follows the HTTP distributor: a strict binding to an unusable channel fails the request, a prefer binding falls back, and an unusable
relay/responses_websocket_test.go:340
FunctionTestSelfTaskMediaURLGuard
(t *testing.T)
controller/task_generic_test.go:805
FunctionTestSendEmailDoesNotAutoUpgradeWhenStartTLSDisabled
(t *testing.T)
common/email_test.go:319
FunctionTestSendEmailExplicitStartTLSRejectsUntrustedCertificateByDefault
(t *testing.T)
common/email_test.go:544
FunctionTestSendEmailExplicitStartTLSRequiresServerSupport
(t *testing.T)
common/email_test.go:298
FunctionTestSendEmailSkipsAuthWhenCredentialsAreEmpty
(t *testing.T)
common/email_test.go:422
FunctionTestSendEmailSkipsAuthWhenCredentialsAreIncomplete
(t *testing.T)
common/email_test.go:455
FunctionTestSendEmailUsesExplicitStartTLSWithInsecureCertificate
(t *testing.T)
common/email_test.go:270
FunctionTestSendEmailUsesNTLMForMicrosoftAccountWhenServerOnlySupportsNTLM
(t *testing.T)
common/email_test.go:516
FunctionTestSendEmailUsesNTLMWhenServerOnlySupportsNTLM
(t *testing.T)
common/email_test.go:488
FunctionTestServeFrontendFilesCompressesEachFileOnce
(t *testing.T)
middleware/frontend_static_test.go:43
FunctionTestServeTaskPluginImageProtocolDisconnectDuringSubmissionKeepsDurableSettlement
A synchronous image submission is billable the moment DashScope accepts it. A client that disconnects while the upstream call is in flight must not ca
controller/plugin_protocol_test.go:1796
FunctionTestServeTaskPluginImageProtocolRendersImmediateResultAndInlinesBase64
The OpenAI Images protocol answers synchronously: an immediate result is rendered by the plugin, `created` is host-filled, and response_format b64_jso
controller/plugin_protocol_test.go:1668
FunctionTestServeTaskPluginImageProtocolSubmissionErrorUsesOpenAIEnvelope
Submission failures use the OpenAI error envelope and surface a DashScope {code, message} failure body as a readable vendor message.
controller/plugin_protocol_test.go:1774
FunctionTestServeTaskPluginImageProtocolWaitsForAsynchronousTask
An asynchronous vendor task is polled inside the request until it is terminal; a failure and the protocol timeout become OpenAI error envelopes while
controller/plugin_protocol_test.go:1719
FunctionTestServeTaskPluginProtocolArtifactURLFailureOnlyFailsCurrentRendering
(t *testing.T)
controller/plugin_protocol_test.go:762
FunctionTestServeTaskPluginProtocolBackgroundNonStreamReturnsPendingWithoutObservation
(t *testing.T)
controller/plugin_protocol_test.go:980
FunctionTestServeTaskPluginProtocolBackgroundStreamEntersObservation
(t *testing.T)
controller/plugin_protocol_test.go:1021
FunctionTestServeTaskPluginProtocolDisconnectBeforeDurableBarrierPersistsAndSettlesWithoutRefund
(t *testing.T)
controller/plugin_protocol_test.go:151
FunctionTestServeTaskPluginProtocolDisconnectDuringSubmissionFinishesDurableWithoutWriting
(t *testing.T)
controller/plugin_protocol_test.go:79
FunctionTestServeTaskPluginProtocolDisconnectDuringTerminalSettlementStopsOnlyObservation
(t *testing.T)
controller/plugin_protocol_test.go:235
FunctionTestServeTaskPluginProtocolNonStreamInjectsHostArtifactCapabilities
(t *testing.T)
controller/plugin_protocol_test.go:699
FunctionTestServeTaskPluginProtocolNonStreamTaskFailureSkipsFinalHook
(t *testing.T)
controller/plugin_protocol_test.go:818
FunctionTestServeTaskPluginProtocolNonStreamUsesFinalHookAndHostEnvelope
(t *testing.T)
controller/plugin_protocol_test.go:623
FunctionTestServeTaskPluginProtocolPostDurableObservationFailureUsesCanonicalResponse
(t *testing.T)
controller/plugin_protocol_test.go:403
FunctionTestServeTaskPluginProtocolRejectsObservationAdmissionBeforeSubmission
(t *testing.T)
controller/plugin_protocol_test.go:947
FunctionTestServeTaskPluginProtocolRejectsUnsupportedProtocolBeforeSubmission
(t *testing.T)
controller/plugin_protocol_test.go:916
FunctionTestServeTaskPluginProtocolStreamInjectsHostArtifactCapabilities
(t *testing.T)
controller/plugin_protocol_test.go:546
FunctionTestServeTaskPluginProtocolStreamMissingRenderEventsUsesFailureEnvelope
(t *testing.T)
controller/plugin_protocol_test.go:514
FunctionTestServeTaskPluginProtocolStreamTaskFailureSuppressesPluginAndDatabaseDetails
(t *testing.T)
controller/plugin_protocol_test.go:872
FunctionTestServeTaskPluginProtocolStreamsPinnedGenerationWithHostFraming
(t *testing.T)
controller/plugin_protocol_test.go:434
FunctionTestServeTaskPluginProtocolWaitsForDurableSubmissionBeforeWriting
(t *testing.T)
controller/plugin_protocol_test.go:30
FunctionTestServerLogLanguage
Server log lines are English. DEFAULT_LANGUAGE=zh-CN prints the Chinese text of the lines that have one in common/log_text.zh-CN.json.
i18n/i18n_test.go:197
FunctionTestServerSideSearchBillingKeys
DeepSeek runs Claude Code and Codex searches server-side and bills them as Search and Fetch API calls, whatever model name the client sent. On the Res
relay/channel/deepseek/adaptor_test.go:89
FunctionTestServesResponsesWebSocket
(t *testing.T)
pkg/jsplugin/channel_config_test.go:117
FunctionTestSessionCacheLuaUsesAbsoluteActiveAndRelativeDenyExpiry
(t *testing.T)
model/user_session_test.go:195
FunctionTestSessionCookieOriginGuard
(t *testing.T)
middleware/auth_origin_test.go:34
FunctionTestSessionCookieOriginGuardDevelopmentCompatibility
(t *testing.T)
middleware/auth_origin_test.go:69
FunctionTestSessionCookieOriginGuardDoesNotTrustForwardedProtoFromClient
(t *testing.T)
middleware/auth_origin_test.go:112
FunctionTestSessionLimitDoesNotRecordRejectedLoginAsSuccessful
(t *testing.T)
controller/auth_session_test.go:110
FunctionTestSessionRulesInheritOrOverrideGlobalDefault
(t *testing.T)
service/channel_affinity_template_test.go:403
FunctionTestSetEventStreamHeadersBoundsStreamWritesByBudget
(t *testing.T)
relay/helper/stream_scanner_test.go:714
FunctionTestSetTaskRouterRegistersWithoutConflict
Gin panics at registration time when routes sharing a path position use different wildcard names, which unit tests that build their own routers never
router/task_router_test.go:33
FunctionTestSetUpLoggerMasksQueryCredentials
(t *testing.T)
middleware/logger_test.go:18
FunctionTestSetUpLoggerNeverWritesTaskArtifactAccess
(t *testing.T)
middleware/task_artifact_access_test.go:133
FunctionTestSetUpLoggerOmitsQueryCredentialsTakenOutByHandlers
(t *testing.T)
middleware/logger_test.go:103
FunctionTestSetUserPermissionsInTxDoesNotMutateEnforcerBeforeReload
(t *testing.T)
service/authz/authz_test.go:218
FunctionTestSetUserPermissionsInTxRollbackLeavesNoPolicy
(t *testing.T)
service/authz/authz_test.go:237
FunctionTestSetUserPermissionsStoresOnlyOverrides
(t *testing.T)
service/authz/authz_test.go:129
FunctionTestSettleAnswers
(t *testing.T)
relay/requestplugin/requestplugin_test.go:234
FunctionTestSettleMidjourneyTaskBillingFundingFailureClearsMarkers
(t *testing.T)
service/task_billing_test.go:714
FunctionTestSettleMidjourneyTaskBillingRequiresPersistedTask
(t *testing.T)
service/task_billing_test.go:609
FunctionTestSettleMidjourneyTaskBillingTokenFailureKeepsFundingRefundable
(t *testing.T)
service/task_billing_test.go:767
FunctionTestSettleTestQuotaUsesTieredBilling
(t *testing.T)
controller/channel_test_internal_test.go:253
FunctionTestSettle_NonPerCallBilling_AppliesAdaptorAdjustment
(t *testing.T)
service/task_billing_test.go:1482
FunctionTestSettle_PerCallBilling_SkipsAdaptorAdjust
=========================================================================== PerCallBilling tests — settleTaskBillingOnComplete =======================
service/task_billing_test.go:1426
FunctionTestSettle_PerCallBilling_SkipsTotalTokens
(t *testing.T)
service/task_billing_test.go:1454
FunctionTestSettle_TieredEvaluationFailureKeepsPreConsumedCharge
(t *testing.T)
service/task_billing_test.go:1514
FunctionTestSettle_TieredFailureReturnsFalseForCallerRefund
(t *testing.T)
service/task_billing_test.go:1540
FunctionTestSettle_TieredSnapshotWriteBackUsesSettledFactsAndMatchedTier
(t *testing.T)
service/task_billing_test.go:1701
FunctionTestSettle_TieredSuccessStillRecomputes
(t *testing.T)
service/task_billing_test.go:1577
FunctionTestSettle_TieredUsageFactsMergeCompletionOverSubmission
(t *testing.T)
service/task_billing_test.go:1624
FunctionTestSettle_TokenRecalcFallsBackToCompletionTokens
(t *testing.T)
service/task_billing_test.go:1752
FunctionTestSetupContextForTokenMalformedAutoGroupsFailsClosed
(t *testing.T)
middleware/token_auto_groups_context_test.go:40
FunctionTestSetupContextForTokenPreservesCustomAutoGroupsOrder
(t *testing.T)
middleware/token_auto_groups_context_test.go:21
FunctionTestSetupContextForTokenTreatsStoredEmptyArrayAsInheritance
(t *testing.T)
middleware/token_auto_groups_context_test.go:31
FunctionTestSetupLoginDoesNotTouchPasswordWhenPasswordFieldOmitted
(t *testing.T)
controller/model_list_test.go:496
FunctionTestSetupRequestHeaderForwardsEveryAnthropicBetaValue
(t *testing.T)
relay/channel/claude/adaptor_test.go:225
FunctionTestShardedRoundTripperCloseIdleConnectionsFansOut
(t *testing.T)
service/http_client_transport_test.go:424
FunctionTestShardedRoundTripperPerOriginRotation
(t *testing.T)
service/http_client_transport_test.go:58
FunctionTestSharedEndpointBillingKeepsOrdinaryAndPluginPricesSeparate
(t *testing.T)
relay/relay_task_test.go:498
FunctionTestSharedEndpointRebindsToBoundNewAPIExtension
(t *testing.T)
middleware/distributor_test.go:440
FunctionTestSharedEndpointRebindsToSelectedLegacyProvider
(t *testing.T)
middleware/distributor_test.go:152
FunctionTestSharedEndpointRebindsToSelectedType61Plugin
(t *testing.T)
middleware/distributor_test.go:367
FunctionTestSharedModelPluginPricingDatabaseMatrix
(t *testing.T)
controller/model_management_test.go:1514
FunctionTestSharedNativeRouteIdentityFilterContainsAllCandidateKeys
(t *testing.T)
service/channel_select_test.go:187
FunctionTestSharedNativeRouteRebindsToSelectedPlugin
On a native path two plugins declare, the selected channel names the executing plugin, which takes over the route and the task identity.
middleware/distributor_test.go:393
FunctionTestSharedPluginKeysFilterBothChannelSources
(t *testing.T)
model/task_plugin_channel_select_test.go:60
FunctionTestSharedPluginRoutesRegisterOnceWithEveryCandidate
Plugins declaring the same path shape share one registration whose candidates are all of them; each candidate reads the parameters under the names it
router/plugin_router_test.go:481
← previousnext →13,701–13,800 of 15,409, ranked by callers