MCPcopy Create free account

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

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

FunctionTestTaskPluginMarketplaceSourceKindComesFromTheAddress
(t *testing.T)
setting/task_plugin_test.go:67
FunctionTestTaskPluginModelRewriteKeepsBorrowedBodies
(t *testing.T)
middleware/task_plugin_test.go:445
FunctionTestTaskPluginOrderSQLQuotesMySQLKeyColumn
(t *testing.T)
model/task_plugin_test.go:145
FunctionTestTaskPluginPagesReportPartsAndCredentialHooks
The plugin list, the plugin detail and the bind options report the same parts, stage hooks and credential hooks for a version the runtime serves. A ve
controller/task_plugin_test.go:651
FunctionTestTaskPluginProtocolHeartbeatDoesNotDispatchEmptySDKEvent
(t *testing.T)
controller/plugin_protocol_test.go:612
FunctionTestTaskPluginResponsesNonStreamDecodesWithOfficialGoSDK
(t *testing.T)
controller/plugin_protocol_sdk_test.go:26
FunctionTestTaskPluginResponsesStreamDecodesWithOfficialGoSDK
(t *testing.T)
controller/plugin_protocol_sdk_test.go:84
FunctionTestTaskPluginRoutingDebugReasonDoesNotExposeRawFailure
(t *testing.T)
pkg/jsplugin/registry_test.go:538
FunctionTestTaskPluginRuntimeExposesDatabaseRevisionAheadOfLocalGeneration
(t *testing.T)
controller/task_plugin_test.go:1130
FunctionTestTaskPluginRuntimeReportsPluginLevelCompileErrors
(t *testing.T)
controller/task_plugin_test.go:1184
FunctionTestTaskPluginRuntimeSurvivesDatabaseSyncFailure
(t *testing.T)
controller/task_plugin_test.go:1223
FunctionTestTaskPluginSourceAboveMySQLTextLimitRoundTrips
The shipped alibaba plugin is already larger than a MySQL TEXT column (64 KiB), so storing it through the model path the upload endpoint uses and read
controller/task_plugin_test.go:340
FunctionTestTaskPluginSubmitDiagnosticsArePluginOnlyAndDoNotLogPayloads
(t *testing.T)
controller/task_plugin_debug_test.go:19
FunctionTestTaskPluginSwitchOnPathsRejectRoutingConflicts
With two enabled plugins whose routing conflicts, the restart order would pick the one that serves. Every path that puts a plugin into service refuses
controller/task_plugin_test.go:1523
FunctionTestTaskPluginSyncSnapshotRevisionTracksDesiredRuntimeState
(t *testing.T)
model/task_plugin_test.go:99
FunctionTestTaskPluginVersionActivationAndSourceImmutability
(t *testing.T)
model/task_plugin_test.go:23
FunctionTestTaskPollingUsesTheSubmittingAccount
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:223
FunctionTestTaskPricingDefaultsAndOptionUpdate
(t *testing.T)
setting/task_pricing_setting/config_test.go:11
FunctionTestTaskQueryRedirects
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:656
FunctionTestTaskReport
A stored task reports once from its row, at its final state, and not at submit; its record carries the submission, the result and the final quota.
relay/requestplugin/socket_test.go:363
FunctionTestTaskReportBeforeTheTaskExists
A submission that failed before its task existed reports at once.
relay/requestplugin/socket_test.go:426
FunctionTestTaskReportsOnceAtTheFinalState
A task reports once, when it reaches its final state: not per poll, not when another poller lost the race, never when no instance may report it.
service/task_polling_test.go:1100
FunctionTestTaskResultBounds
The task result keeps URLs and texts within its bounds.
relay/requestplugin/socket_test.go:443
FunctionTestTaskSubmissionRunsRequestPlugins
A task submission runs the request plugins: ingress on the client body before it is decoded, priced or reserved, egress on the body the task plugin bu
controller/plugin_native_e2e_test.go:441
FunctionTestTaskSubmissionStages
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1774
FunctionTestTaskSubmitDeltaStreamContract
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2565
FunctionTestTaskSubmitHooksReceiveIndependentRequestSnapshots
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2501
FunctionTestTaskSubmitReplyLimitFollowsRetainResult
A native route that declares retainResult: false never persists its reply, so a Base64 image reply may exceed the 1 MiB task data limit.
relay/channel/task/jsplugin/adaptor_test.go:2330
FunctionTestTaskSubmitStreamCancellationClosesReader
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2367
FunctionTestTaskSubmitStreamContract
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2163
FunctionTestTaskSubmitStreamIdleTimeout
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2380
FunctionTestTaskSubmitStreamRelaysToNativeClients
A native route's client receives every upstream event as the vendor framed it, and once one has arrived the submission settles instead of failing. The
relay/channel/task/jsplugin/adaptor_test.go:2224
FunctionTestTaskSubmitUsesTheCredential
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:194
FunctionTestTaskToOpenAIVideoDoesNotExposeResultURL
(t *testing.T)
model/task_openai_video_test.go:11
FunctionTestTaskToOpenAIVideoStatusAndCompletedAt
(t *testing.T)
model/task_openai_video_test.go:39
FunctionTestTaskUsageExpressionUsesFactsAndTaskQuotaConversion
(t *testing.T)
pkg/billingexpr/task_usage_test.go:10
FunctionTestTaskUsageValidationLeavesReturnedHostRequestUnchanged
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2532
FunctionTestTelegramOAuthBindingIsAtomicAndSessionBound
(t *testing.T)
controller/telegram_test.go:293
FunctionTestTelegramOAuthBindingRejectsChangedAccountsAndDuplicateOwnership
(t *testing.T)
controller/telegram_test.go:330
FunctionTestTelegramOAuthConcurrentBindingHasSingleOwner
(t *testing.T)
controller/telegram_test.go:432
FunctionTestTelegramOAuthConfigurationAndLegacyEndpoints
(t *testing.T)
controller/telegram_test.go:360
FunctionTestTelegramOAuthPreservesExistingAccountAndBinding
(t *testing.T)
controller/telegram_test.go:202
FunctionTestTelegramOAuthRejectsInvalidTokens
(t *testing.T)
controller/telegram_test.go:236
FunctionTestTerminalSidecarRemainsAuthoritativeAgainstFinalize
(t *testing.T)
relaykit/relayconvert/internal/claude_messages/stream_billing_usage_test.go:44
FunctionTestTestAllChannelsRejectsExistingActiveTask
(t *testing.T)
controller/channel_test_internal_test.go:479
FunctionTestTextRequestViaResponsesConvertsClaudeDirectly
(t *testing.T)
relay/chat_completions_via_responses_test.go:138
FunctionTestThinkingSuffixUpstreamFields
The -none/-low/-max tails of deepseek-flash and deepseek-v4-* reach DeepSeek as its own thinking switch and effort in each upstream format, with the b
relay/channel/deepseek/adaptor_test.go:24
FunctionTestTimeFunctions_AllFunctionsCompile
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:941
FunctionTestTimeFunctions_EmptyTimezone
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:964
FunctionTestTimeFunctions_InvalidTimezone
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:952
FunctionTestTimeFunctions_MonthDayPattern
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:999
FunctionTestTimeFunctions_NightDiscountPattern
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:975
FunctionTestTimeFunctions_ValidTimezone
--------------------------------------------------------------------------- Time function tests ------------------------------------------------------
pkg/billingexpr/billingexpr_test.go:930
FunctionTestTimeFunctions_WeekdayRange
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:987
FunctionTestToWebSocketURL
(t *testing.T)
relay/channel/api_request_test.go:210
FunctionTestTokenAllowUserQuotaQueryOnCreateAndUpdate
(t *testing.T)
controller/token_test.go:592
FunctionTestTokenAllowUserQuotaQueryRoundTripsThroughRedisHashCache
(t *testing.T)
model/token_auto_groups_cache_test.go:31
FunctionTestTokenAuthReadOnlyTranslatesErrors
Read-only API key routes (/api/usage/token, /api/log/token) are called by scripts, not the web console, so their errors are translated by the backend
middleware/auth_test.go:97
FunctionTestTokenAutoGroupsRoundTripThroughRedisHashCache
(t *testing.T)
model/token_auto_groups_cache_test.go:11
FunctionTestTokenAutoMigrateUsesVarchar128KeyColumn
(t *testing.T)
controller/token_test.go:406
FunctionTestTokenCacheInitPreservesLiveQuotaAndFenceBlocksStaleSnapshot
(t *testing.T)
model/quota_reserve_test.go:223
FunctionTestTokenCountMetaCountsAgentLoopContent
Agent loops replay tool definitions, tool calls, and tool output on every turn; the prompt estimate must see all of them as the model reads them.
relaykit/dto/token_count_meta_test.go:14
FunctionTestTokenMigrationFromChar48ToVarchar128
(t *testing.T)
controller/token_test.go:417
FunctionTestTokenMigrationFromChar48ToVarchar128MySQL
(t *testing.T)
controller/token_test.go:422
FunctionTestTokenMigrationFromChar48ToVarchar128Postgres
(t *testing.T)
controller/token_test.go:432
FunctionTestTokenModelLimitAllowsExemptAtNameByFullName
(t *testing.T)
middleware/distributor_test.go:268
FunctionTestTokenModelLimitAllowsLegacyAliasAndModifierVariant
(t *testing.T)
middleware/distributor_test.go:234
FunctionTestTokenUpdateSynchronouslyNarrowsPreheatedAutoGroupsCache
(t *testing.T)
model/token_auto_groups_cache_test.go:44
FunctionTestToolPriceCustomFunctionHasNoHardcodedFallback
(t *testing.T)
setting/operation_setting/tools_price_test.go:98
FunctionTestToolPriceHardcodedFallbacksSurviveMissingOperatorConfig
(t *testing.T)
setting/operation_setting/tools_price_test.go:22
FunctionTestToolPriceOperatorOverridePrecedenceAndExplicitZero
(t *testing.T)
setting/operation_setting/tools_price_test.go:69
FunctionTestTopLevelRoutesSkipOnlyHostRoutesAndOtherKeys
Built-in and uploaded plugins alike serve their top-level paths, /v1 ones included, unless a host route answers first or the first segment is another
router/plugin_router_test.go:414
FunctionTestTopUpQuotaValidation
(t *testing.T)
controller/topup_quota_limit_test.go:21
FunctionTestTryReserveQuotaWithoutRedis
(t *testing.T)
model/quota_reserve_test.go:77
FunctionTestTryTieredSettleFallsBackToFrozenPreConsumeOnExprError
(t *testing.T)
service/tiered_settle_test.go:96
FunctionTestTryTieredSettleNoClampInRange
TestTryTieredSettleNoClampInRange confirms an in-range settlement leaves RelayInfo.QuotaClamp nil.
service/text_quota_test.go:1253
FunctionTestTryTieredSettleRecordsClampOnOverflow
TestTryTieredSettleRecordsClampOnOverflow guards that an oversized tiered settlement both saturates the quota and records the clamp on RelayInfo, so e
service/text_quota_test.go:1227
FunctionTestTryTieredSettleUsesFinalGroupAfterRetry
(t *testing.T)
service/tiered_settle_test.go:525
FunctionTestTryTieredSettleUsesFrozenRequestInput
--------------------------------------------------------------------------- Existing tests (preserved) -----------------------------------------------
service/tiered_settle_test.go:65
FunctionTestTryTieredSettle_BoundaryPlusOne
(t *testing.T)
service/tiered_settle_test.go:200
FunctionTestTryTieredSettle_CacheTokensAffectSettlement
(t *testing.T)
service/tiered_settle_test.go:248
FunctionTestTryTieredSettle_ErrorFallbackToEstimatedQuotaAfterGroup
--------------------------------------------------------------------------- Fallback tests -----------------------------------------------------------
service/tiered_settle_test.go:643
FunctionTestTryTieredSettle_ExactBoundary
--------------------------------------------------------------------------- Tiered boundary conditions -----------------------------------------------
service/tiered_settle_test.go:183
FunctionTestTryTieredSettle_GroupRatioScaling
(t *testing.T)
service/tiered_settle_test.go:567
FunctionTestTryTieredSettle_GroupRatioZero
(t *testing.T)
service/tiered_settle_test.go:580
FunctionTestTryTieredSettle_HugeTokens
(t *testing.T)
service/tiered_settle_test.go:235
FunctionTestTryTieredSettle_NoRequestInput_FallsBackToDefault
(t *testing.T)
service/tiered_settle_test.go:299
FunctionTestTryTieredSettle_PostConsumeOverPreConsume
(t *testing.T)
service/tiered_settle_test.go:141
FunctionTestTryTieredSettle_PostConsumeUnderPreConsume
(t *testing.T)
service/tiered_settle_test.go:160
FunctionTestTryTieredSettle_PreConsumeMatchesPostConsume
--------------------------------------------------------------------------- Pre-consume vs Post-consume consistency ----------------------------------
service/tiered_settle_test.go:124
FunctionTestTryTieredSettle_RatioMode_EmptyBillingMode
(t *testing.T)
service/tiered_settle_test.go:623
FunctionTestTryTieredSettle_RatioMode_NilSnapshot
--------------------------------------------------------------------------- Ratio mode (negative tests) — TryTieredSettle must return false ----------
service/tiered_settle_test.go:596
FunctionTestTryTieredSettle_RatioMode_WrongBillingMode
(t *testing.T)
service/tiered_settle_test.go:607
FunctionTestTryTieredSettle_RequestProbeInfluencesBilling
--------------------------------------------------------------------------- Request probe tests ------------------------------------------------------
service/tiered_settle_test.go:280
FunctionTestTryTieredSettle_ZeroTokens
(t *testing.T)
service/tiered_settle_test.go:220
FunctionTestTryUserAuthCredentialClassification
(t *testing.T)
middleware/auth_test.go:240
FunctionTestUnattributableRebuildFailureRetainsOldGeneration
(t *testing.T)
router/plugin_router_test.go:800
FunctionTestUnavailablePlugin
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1838
FunctionTestUnknownModelModifierIsBadRequestWithoutRetry
(t *testing.T)
relay/convert_request_error_test.go:225
FunctionTestUnmarshalBodyReusableNoCopySurvivesBodyReplacement
(t *testing.T)
common/body_storage_test.go:71
← previousnext →14,001–14,100 of 15,409, ranked by callers