MCPcopy Create free account

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

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

FunctionTestUnreadableBodyAndMissingPlugin
A body the stage cannot read and an instance whose plugin is gone stop nothing: the first is recorded as unchecked, the second does not run.
relay/requestplugin/requestplugin_test.go:318
FunctionTestUnregisterPreventsClose
(t *testing.T)
pkg/wsmanager/wsmanager_test.go:66
FunctionTestUpdateAuthFlowPayloadSwapsOnlyTheExpectedPayload
(t *testing.T)
model/channel_plugin_credential_test.go:56
FunctionTestUpdateBatchTasksPollClassification
(t *testing.T)
service/task_polling_test.go:1024
FunctionTestUpdateBatchTasksRefundsFailedTaskWithoutUsageSettlement
(t *testing.T)
service/task_polling_test.go:456
FunctionTestUpdateBatchTasksRefundsFailedTieredTask
(t *testing.T)
service/task_polling_test.go:399
FunctionTestUpdateBatchTasksSettlesTieredUsageForTerminalStates
(t *testing.T)
service/task_polling_test.go:319
FunctionTestUpdateChannelLocked
(t *testing.T)
model/channel_plugin_credential_test.go:88
FunctionTestUpdateChannelNewAPIBalanceUsesTheSmallerRemainingQuota
(t *testing.T)
controller/channel_billing_test.go:140
FunctionTestUpdateChannelRejectsStatusField
(t *testing.T)
controller/channel_authz_test.go:132
FunctionTestUpdateChannelStatusBumpsChannelsOnlyForChangesByHand
A status set by hand reaches every node at once through the channels topic. An automatic change, made for the key a request or a channel test used, is
model/channel_status_test.go:227
FunctionTestUpdateChannelStatusPersistsMultiKeyState
(t *testing.T)
model/channel_status_test.go:39
FunctionTestUpdateChannelSub2APIBalanceInvalidKey
(t *testing.T)
controller/channel_billing_sub2api_test.go:93
FunctionTestUpdateChannelSub2APIBalanceMissingBaseURL
(t *testing.T)
controller/channel_billing_sub2api_test.go:139
FunctionTestUpdateChannelSub2APIBalanceNegativeWalletBalance
(t *testing.T)
controller/channel_billing_sub2api_test.go:125
FunctionTestUpdateChannelSub2APIBalanceRemainingPreferred
(t *testing.T)
controller/channel_billing_sub2api_test.go:49
FunctionTestUpdateChannelSub2APIBalanceSubscriptionKeyMissingFields
(t *testing.T)
controller/channel_billing_sub2api_test.go:80
FunctionTestUpdateChannelSub2APIBalanceUnlimitedSubscription
(t *testing.T)
controller/channel_billing_sub2api_test.go:106
FunctionTestUpdateChannelSub2APIBalanceWalletFallback
(t *testing.T)
controller/channel_billing_sub2api_test.go:66
FunctionTestUpdateChannelTaskPluginRequiresBindPermission
(t *testing.T)
controller/channel_task_plugin_bind_test.go:89
FunctionTestUpdateConfigFromMap_EmptyMapClearsAll
(t *testing.T)
setting/config/config_test.go:50
FunctionTestUpdateConfigFromMap_MapReplacement
(t *testing.T)
setting/config/config_test.go:13
FunctionTestUpdateConfigFromMap_ScalarFieldsUnchanged
(t *testing.T)
setting/config/config_test.go:76
FunctionTestUpdateMaxTokenAutoGroupsAcceptsAnyPositiveInteger
(t *testing.T)
setting/auto_group_test.go:11
FunctionTestUpdateMaxTokenAutoGroupsRejectsInvalidValuesWithoutChangingState
(t *testing.T)
setting/auto_group_test.go:21
FunctionTestUpdateOptionAliasBillingExprUsesPluginSchema
(t *testing.T)
controller/billing_option_test.go:114
FunctionTestUpdateOptionRejectsInvalidGeminiSafetyThreshold
(t *testing.T)
controller/option_gemini_test.go:15
FunctionTestUpdateOptionRejectsInvalidTaskBillingExpressions
(t *testing.T)
controller/billing_option_test.go:28
FunctionTestUpdateOptionRejectsNegativeClaudeDefaultMaxTokens
(t *testing.T)
controller/option_claude_test.go:15
FunctionTestUpdateOptionRejectsRetiredFrontendTheme
(t *testing.T)
controller/theme_compat_test.go:15
FunctionTestUpdateOptionRejectsUsageExpressionWithoutTaskPlugin
(t *testing.T)
controller/billing_option_test.go:86
FunctionTestUpdateOptionValidatesEpaySignSettings
(t *testing.T)
controller/payment_webhook_availability_test.go:428
FunctionTestUpdatePasskeyAssertionStateCannotRewriteRegistrationIdentity
(t *testing.T)
model/user_authentication_test.go:312
FunctionTestUpdatePendingTopUpStatus_RejectsMismatchedPaymentProvider
(t *testing.T)
model/payment_method_guard_test.go:106
FunctionTestUpdateStandardChannelBalanceRoutesSub2API
(t *testing.T)
controller/channel_billing_sub2api_test.go:147
FunctionTestUpdateSunoTasksStalePollsRefundExactlyOnce
(t *testing.T)
service/task_polling_test.go:663
FunctionTestUpdateSystemTaskStateIdenticalPayloadDoesNotLoseLock
(t *testing.T)
model/system_task_test.go:512
FunctionTestUpdateTaskPluginMarketplaceSourcesRoundTrip
(t *testing.T)
controller/task_plugin_test.go:1842
FunctionTestUpdateTaskPluginMarketplaceSourcesValidation
(t *testing.T)
controller/task_plugin_test.go:1873
FunctionTestUpdateTokenAutoGroupsTriStateAndNonAutoCleanup
(t *testing.T)
controller/token_auto_groups_test.go:138
FunctionTestUpdateTokenMasksKeyInResponse
(t *testing.T)
controller/token_test.go:522
FunctionTestUpdateUserBindColumnOnlyTouchesTheBindingColumn
(t *testing.T)
model/user_update_test.go:299
FunctionTestUpdateUserBindColumnPreservesRestrictiveChange
(t *testing.T)
model/user_update_test.go:319
FunctionTestUpdateUserBindColumnRejectsNonWhitelistedColumns
(t *testing.T)
model/user_update_test.go:333
FunctionTestUpdateUserSettingKeepsWhatTheRequestLeavesOut
Saving notification settings starts from what the user stored: fields the form does not manage stay, and switches an older client leaves out keep thei
controller/user_manage_test.go:650
FunctionTestUpdateUserSettingOnlyUpdatesSetting
(t *testing.T)
model/user_update_test.go:208
FunctionTestUpdateVideoSingleTaskPollClassification
(t *testing.T)
service/task_polling_test.go:880
FunctionTestUpdateVideoTasksCanSkipPollingSleepPerChannel
(t *testing.T)
service/task_polling_test.go:486
FunctionTestUpdateVideoTasksDefaultSleepDoesNotBlockOtherChannels
(t *testing.T)
service/task_polling_test.go:516
FunctionTestUpdateVideoTasksDefaultSleepWaitsBetweenTasks
(t *testing.T)
service/task_polling_test.go:227
FunctionTestUpdateVideoTasksMixedChannelSleepSettings
(t *testing.T)
service/task_polling_test.go:623
FunctionTestUpdateVideoTasksSlowChannelDoesNotBlockOtherChannels
(t *testing.T)
service/task_polling_test.go:556
FunctionTestUpdateWithStatus_ConcurrentWinner
(t *testing.T)
model/task_cas_test.go:278
FunctionTestUpdateWithStatus_Lose
(t *testing.T)
model/task_cas_test.go:258
FunctionTestUpdateWithStatus_PersistsPluginStateAndPollFailures
(t *testing.T)
model/task_cas_test.go:325
FunctionTestUpdateWithStatus_Win
--------------------------------------------------------------------------- UpdateWithStatus CAS — DB integration tests ------------------------------
model/task_cas_test.go:235
FunctionTestUpdatedRegistrationPanicRestoresIncumbent
(t *testing.T)
router/plugin_router_test.go:767
FunctionTestUploadTaskPluginAcceptsSourcesUpToEightMiB
(t *testing.T)
controller/task_plugin_test.go:377
FunctionTestUploadTaskPluginAppliesMarketplaceKeyRulesAndCountsCommunityInstalls
(t *testing.T)
controller/task_plugin_test.go:2149
FunctionTestUploadTaskPluginPreflightConflict
(t *testing.T)
controller/task_plugin_test.go:1384
FunctionTestUploadTaskPluginRefreshesRuntimeSyncState
(t *testing.T)
controller/task_plugin_test.go:882
FunctionTestUploadTaskPluginRejectsMetaViolatingV1Schema
(t *testing.T)
controller/task_plugin_test.go:1666
FunctionTestUploadTaskPluginReportsUnknownMetaField
(t *testing.T)
controller/task_plugin_test.go:1641
FunctionTestUploadTaskPluginSourceSha256
(t *testing.T)
controller/task_plugin_test.go:1739
FunctionTestUploadTaskPluginStoresSidecarIconAndServesIt
(t *testing.T)
controller/task_plugin_test.go:1961
FunctionTestUpstreamAddressesMaskOnlyConfiguredAddresses
Only addresses the admin configured are masked: a channel on the base URL new-api presets reaches a public official endpoint, and so do adaptors that
service/relay_error_test.go:132
FunctionTestUpstreamContextsUseGatewayBearerOnNewAPIChannels
(t *testing.T)
relay/channel/task/jsplugin/auth_test.go:82
FunctionTestUpstreamGetBody_HTTP2CannotRetryWithoutGetBody
TestUpstreamGetBody_HTTP2CannotRetryWithoutGetBody documents the pre-fix behavior: without GetBody the transport cannot safely retry once the body has
relay/channel/api_request_getbody_test.go:555
FunctionTestUpstreamGetBody_HTTP2RetryAfterGracefulGoAway_PassThrough
(t *testing.T)
relay/channel/api_request_getbody_test.go:521
FunctionTestUpstreamGetBody_HTTP2RetryAfterUpstreamStreamReset
TestUpstreamGetBody_HTTP2RetryAfterUpstreamStreamReset exercises the actual failure this change fixes: an HTTP/2 upstream resets the stream with a ret
relay/channel/api_request_getbody_test.go:454
FunctionTestUpstreamGetBody_HTTP2RetryAfterUpstreamStreamReset_PassThrough
(t *testing.T)
relay/channel/api_request_getbody_test.go:489
FunctionTestUpstreamsManifestContract
(t *testing.T)
pkg/jsplugin/registry_test.go:1255
FunctionTestUsageAccountingSupportsSignedDirectAndBatchDeltas
(t *testing.T)
model/user_update_test.go:94
FunctionTestUsageBillingPathForLog
(t *testing.T)
service/text_quota_test.go:707
FunctionTestUsageEnumLabelsContract
(t *testing.T)
pkg/jsplugin/registry_test.go:371
FunctionTestUsageFromChatUsagePreservesCacheCreationInputTokensAlone
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:94
FunctionTestUsageFromOpenAIBillingUsageFallsBackToPromptCacheHitTokens
(t *testing.T)
service/text_quota_test.go:648
FunctionTestUsageFromOpenAIBillingUsageNormalizesCacheDetailsWithoutOverwritingCanonicalValues
(t *testing.T)
service/text_quota_test.go:617
FunctionTestUsageUnitLabelContract
(t *testing.T)
pkg/jsplugin/registry_test.go:333
FunctionTestUsedUsageKeysExtractsLiteralCallsAndSkipsDynamicArguments
(t *testing.T)
pkg/billingexpr/compile_usage_test.go:10
FunctionTestUsedUsageKeysReturnsNilForEmptyOrInvalidExpressions
(t *testing.T)
pkg/billingexpr/compile_usage_test.go:18
FunctionTestUserAccessTokenLimitAndOwnership
(t *testing.T)
model/user_update_test.go:497
FunctionTestUserAuthAllowsOpaqueDottedPAT
(t *testing.T)
middleware/auth_test.go:117
FunctionTestUserAuthAppliesAccessTokenRouteRules
(t *testing.T)
middleware/auth_test.go:388
FunctionTestUserAuthCacheUpdateRejectsVersionMismatch
(t *testing.T)
model/user_cache_auth_version_test.go:112
FunctionTestUserAuthFenceRollbackExpiresAndRecovers
(t *testing.T)
model/user_cache_auth_version_test.go:58
FunctionTestUserAuthNeverFallsBackForRecognizedInvalidInternalJWT
(t *testing.T)
middleware/auth_test.go:138
FunctionTestUserAuthVersionFenceAndCommittedFloorAreMonotonic
(t *testing.T)
model/user_cache_auth_version_test.go:212
FunctionTestUserAuthVersionInvalidatesExistingSession
(t *testing.T)
service/auth_session_test.go:430
FunctionTestUserBaseIncludesAuthorizationFields
(t *testing.T)
model/user_session_test.go:588
FunctionTestUserSessionCacheExcludesRefreshDigests
(t *testing.T)
model/user_session_test.go:311
FunctionTestUserSessionCacheTTLUsesShortCacheWindow
(t *testing.T)
model/user_session_test.go:99
FunctionTestUserSessionCreateListAndRevokeOne
(t *testing.T)
model/user_session_test.go:216
FunctionTestUserSessionGrowthCountsUseBroadActiveAndStrictIssuancePredicates
(t *testing.T)
model/user_session_test.go:392
FunctionTestUserSessionGrowthQueryIndexesExist
(t *testing.T)
model/user_session_test.go:580
FunctionTestUserSessionPreviousRefreshHashMigrationConfiguredDatabases
(t *testing.T)
model/user_session_migration_test.go:131
FunctionTestUserSessionPreviousRefreshHashMigrationSQLite
(t *testing.T)
model/user_session_migration_test.go:124
FunctionTestUserSessionPreviousRefreshHashNormalizesLegacyPadding
(t *testing.T)
model/user_session_test.go:275
FunctionTestUserSessionPreviousRefreshHashSchemaUsesNullableVarchar
(t *testing.T)
model/user_session_migration_test.go:73
FunctionTestUserUpdateBumpsAuthVersionOnlyForAuthorizationChanges
(t *testing.T)
model/user_session_test.go:605
← previousnext →14,101–14,200 of 15,409, ranked by callers