MCPcopy Create free account

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

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

FunctionTestSweepTimedOutTasksAtTheDefaultDeadline
TASK_TIMEOUT_MINUTES defaults to 72 hours, the longest a vendor keeps a task running (Ark can be configured to 72h, Vidu off-peak runs 48h).
service/task_polling_test.go:796
FunctionTestSweepTimedOutTasksHonorsRefundRolloutBoundary
(t *testing.T)
service/task_polling_test.go:751
FunctionTestSwitchedOffPluginPricesAreNotPricingIssues
A plugin switched off keeps its saved prices for when it is switched back on, whether its override row is stored disabled or its built-in sits in the
controller/task_plugin_test.go:1009
FunctionTestSyncTaskPluginsCachesRejectedDesiredSourceWithoutLosingIncumbent
(t *testing.T)
controller/task_plugin_test.go:1271
FunctionTestSyncTaskPluginsPublishesOneGenerationForWholeBatch
(t *testing.T)
controller/task_plugin_test.go:1101
FunctionTestSynchronousReserveCompensatesCacheWhenPersistenceFails
(t *testing.T)
model/quota_reserve_test.go:194
FunctionTestSystemOverloadRequiresConsecutiveSamples
(t *testing.T)
common/system_monitor_test.go:191
FunctionTestSystemTaskActiveKeyPreventsDuplicateActiveRun
(t *testing.T)
model/system_task_test.go:235
FunctionTestSystemTaskClaimPassDispatchesByType
(t *testing.T)
service/system_task_test.go:110
FunctionTestSystemTaskClaimPassDispatchesEarliestPendingByType
(t *testing.T)
service/system_task_test.go:146
FunctionTestSystemTaskCreateAndActiveLifecycle
(t *testing.T)
model/system_task_test.go:195
FunctionTestSystemTaskHistoryDatabaseMatrix
(t *testing.T)
model/system_task_test.go:64
FunctionTestSystemTaskInvalidFiltersAreRejected
(t *testing.T)
controller/system_task_test.go:52
FunctionTestSystemTaskListFiltersAndPaginationResponse
(t *testing.T)
controller/system_task_test.go:17
FunctionTestSystemTaskLockPreventsConcurrentClaim
(t *testing.T)
model/system_task_test.go:250
FunctionTestSystemTaskSchedulerCreatesWhenDueAndDedups
(t *testing.T)
service/system_task_test.go:65
FunctionTestSystemTaskSchedulerSkipsDisabled
(t *testing.T)
service/system_task_test.go:100
FunctionTestSystemTaskUpdatesRequireCurrentLock
(t *testing.T)
model/system_task_test.go:468
FunctionTestSystemTaskUpdatesRequireUnexpiredLock
(t *testing.T)
model/system_task_test.go:487
FunctionTestTaskAdaptorAcceptsNormalizedLegacyTokenCounters
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1506
FunctionTestTaskAdaptorAllowsExplicitCredentiallessCDNRequest
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:576
FunctionTestTaskAdaptorBatchBridge
Covers the bridge half of the batch contract: FetchBatchTasks must build the upstream request from the plugin descriptor, and ParseBatchResult must ke
relay/channel/task/jsplugin/adaptor_test.go:1683
FunctionTestTaskAdaptorBatchQueryReceivesTaskObjects
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1949
FunctionTestTaskAdaptorBoundsNativeUsageBeforeQuotaCalculation
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1194
FunctionTestTaskAdaptorBuildContentRequestHookAndMissingFallback
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:500
FunctionTestTaskAdaptorBuildContentRequestPassesContentPath
buildContentRequest may address the artifact's bytes inside a JSON reply; the path follows the JSON change path rules and the media type must fit a he
relay/channel/task/jsplugin/adaptor_test.go:2919
FunctionTestTaskAdaptorBuildSubmitReceivesMappedUpstreamModel
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1774
FunctionTestTaskAdaptorBuildsMultipartFromOpaqueFileReference
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:92
FunctionTestTaskAdaptorChainsDoubaoThroughNewAPIUpstream
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2719
FunctionTestTaskAdaptorChainsSunoBatchFetchThroughNewAPIUpstream
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2778
FunctionTestTaskAdaptorDoesNotEmitInjectedMultipartDispositionHeaders
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:285
FunctionTestTaskAdaptorFetchTaskExposesModelIdentities
Polling has no relay info, so query hooks can only branch on the model when the host forwards the persisted task identities from the fetch body.
relay/channel/task/jsplugin/adaptor_test.go:1792
FunctionTestTaskAdaptorHeaderOverrides
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:970
FunctionTestTaskAdaptorHookFetchReachesRequestHostsOnly
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:597
FunctionTestTaskAdaptorInlinesJSONFilePlaceholders
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:137
FunctionTestTaskAdaptorJSONFilePlaceholderErrors
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:226
FunctionTestTaskAdaptorJSONOrderCapability
A plugin declaring json-order@1 forwards the members in the order the client sent them, through the final decode, the request body hooks receive and t
relay/channel/task/jsplugin/adaptor_test.go:458
FunctionTestTaskAdaptorMapsJSContract
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:882
FunctionTestTaskAdaptorMasksChannelAddressInBuildFailure
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:421
FunctionTestTaskAdaptorParseSubmitResponsePersistsState
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1916
FunctionTestTaskAdaptorPreservesOpenAIVideoFailureSlotsAndOwnsLifecycle
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1174
FunctionTestTaskAdaptorPreservesSoraVideoResponseFields
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1079
FunctionTestTaskAdaptorQueryContextOmitsRequestBody
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1844
FunctionTestTaskAdaptorReDecodesFinalCandidateAndRejectsModelDrift
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:364
FunctionTestTaskAdaptorReDecodesReboundNativeRouteCandidate
When distribution binds another candidate of a shared native route, that plugin decodes the request again, reading the parameters under its own names,
relay/channel/task/jsplugin/adaptor_test.go:2835
FunctionTestTaskAdaptorRejectsDeprecatedClientResponse
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:73
FunctionTestTaskAdaptorRejectsInvalidArtifactProjection
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:550
FunctionTestTaskAdaptorRejectsNonObjectOpenAIVideoRendererOutput
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1153
FunctionTestTaskAdaptorRejectsPostDistributionEndpointModelDrift
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:329
FunctionTestTaskAdaptorRejectsRendererFromFinalProtocolDecoder
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:394
FunctionTestTaskAdaptorRejectsRequestHostOverride
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1650
FunctionTestTaskAdaptorSeparatesExpressionFactsFromLegacyBillingRatios
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1468
FunctionTestTaskAdaptorUsageProfilesFollowExecutionModel
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:1988
FunctionTestTaskArtifactAccessBindsTaskAndKey
(t *testing.T)
service/task_artifact_access_test.go:13
FunctionTestTaskArtifactAccessIsRedactedAndVerifiedBeforeHandler
(t *testing.T)
middleware/task_artifact_access_test.go:19
FunctionTestTaskArtifactAccessLimiterDefaults
(t *testing.T)
middleware/task_artifact_access_test.go:84
FunctionTestTaskArtifactAccessRejectsAmbiguousHistoricalTaskID
(t *testing.T)
controller/task_generic_test.go:283
FunctionTestTaskArtifactAccessRejectsTamperedAndEmptyCapabilitiesAsNotFound
(t *testing.T)
middleware/task_artifact_access_test.go:52
FunctionTestTaskArtifactAccessRequiresActiveOwner
(t *testing.T)
controller/task_generic_test.go:255
FunctionTestTaskArtifactAuthorizationKeepsForeignTasksHidden
(t *testing.T)
controller/task_generic_test.go:115
FunctionTestTaskArtifactContentFollowsHailuoRetrieveLink
hailuo looks the MiniMax download link up with utils.fetch; the signed OSS link then gets a plain GET without the channel key, even for HEAD clients.
controller/task_generic_test.go:411
FunctionTestTaskBillingContextPriceDataFiltersMultiplier
(t *testing.T)
service/task_billing_test.go:494
FunctionTestTaskBillingOtherFiltersHistoricalOtherRatios
(t *testing.T)
service/task_billing_test.go:224
FunctionTestTaskBillingOtherIncludesTieredSnapshotAndKeepsUsageFactsNested
(t *testing.T)
service/task_billing_test.go:249
FunctionTestTaskBillingOtherOmitsEmptyUsageFacts
(t *testing.T)
service/task_billing_test.go:276
FunctionTestTaskBillingOtherSeparatesPluginAndRootDiagnostics
(t *testing.T)
service/task_billing_test.go:451
FunctionTestTaskContentRequestsUseTheCredential
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:354
FunctionTestTaskDurationBounds
TestTaskDurationBounds guards the billing invariant that user-supplied video duration (a quota multiplier via OtherRatio "seconds") is bounded, so it
relay/common/relay_utils_test.go:83
FunctionTestTaskListsOmitPersistedSnapshot
Task lists omit the data column; the API DTO keeps the key as null so shape checks survive while the payload no longer travels with every row.
controller/task_generic_test.go:226
FunctionTestTaskLogDTODoesNotInventHistoricalPluginProvenance
(t *testing.T)
controller/task_log_view_test.go:76
FunctionTestTaskLogDTOKeepsFailureReasonAndDoesNotMarkPluginTaskLegacy
(t *testing.T)
controller/task_log_view_test.go:108
FunctionTestTaskLogDTOReplacesLegacyVideoURLWithAvailabilityFlag
(t *testing.T)
controller/task_log_view_test.go:88
FunctionTestTaskLogDTOSeparatesUserAdminAndRootDetails
(t *testing.T)
controller/task_log_view_test.go:13
FunctionTestTaskMediaRequestHeaderPolicy
(t *testing.T)
controller/task_generic_test.go:770
FunctionTestTaskMediaResponseHeaderTimeoutCancelsBeforeHeaders
(t *testing.T)
controller/task_generic_test.go:602
FunctionTestTaskMediaResponseHeaderTimeoutDoesNotTruncateBody
(t *testing.T)
controller/task_generic_test.go:582
FunctionTestTaskModel2DtoNormalizesLegacyAction
(t *testing.T)
relay/relay_task_test.go:184
FunctionTestTaskOnlyPluginChannelStaysOutOfTheRelay
(t *testing.T)
router/provider_plugin_relay_test.go:356
FunctionTestTaskOnlyPluginLoginServesTasks
TestTaskOnlyPluginLoginServesTasks logs in on a channel of a plugin with only a task part, then submits and polls a task with that credential.
relay/channel/task/jsplugin/credential_test.go:319
FunctionTestTaskPlatformUnavailableError
TaskPlatformUnavailableError feeds the client-facing rejection when no adaptor serves a platform. The three shapes are user-actionable and must stay d
relay/task_platform_error_test.go:14
FunctionTestTaskPluginBindIsRootOnlyUntilGranted
(t *testing.T)
service/authz/authz_test.go:289
FunctionTestTaskPluginChangesReportPricingIssuesOfServingPlugin
Every change that puts a version into service answers with the prices the serving plugin cannot charge, read after the registry sync.
controller/task_plugin_test.go:951
FunctionTestTaskPluginChannelHasNoOrdinaryAPIType
(t *testing.T)
common/api_type_task_plugin_test.go:10
FunctionTestTaskPluginChannelResponsesWebSocket
A task plugin channel takes a Responses WebSocket session when the switch is on and its plugin's /v1/responses route for the model has no converter, t
model/channel_constraint_test.go:224
FunctionTestTaskPluginChannelSelectionFiltersBothCachePaths
(t *testing.T)
model/task_plugin_channel_select_test.go:13
FunctionTestTaskPluginDisabledFactoryKeysBadJSONReturnsEmpty
(t *testing.T)
setting/task_plugin_test.go:38
FunctionTestTaskPluginDisabledFactoryKeysOptionUpdatesRegistry
(t *testing.T)
model/option_task_plugin_test.go:56
FunctionTestTaskPluginDisabledFactoryKeysRoundTripAndDedupe
(t *testing.T)
setting/task_plugin_test.go:24
FunctionTestTaskPluginDisplayOrderAndMetadata
(t *testing.T)
controller/task_plugin_test.go:1910
FunctionTestTaskPluginEnabledOptionUpdatesRegistry
(t *testing.T)
model/option_task_plugin_test.go:21
FunctionTestTaskPluginEndpointMissPreservesOrdinaryRequestBody
(t *testing.T)
middleware/task_plugin_test.go:794
FunctionTestTaskPluginEndpointOnlyPreservesConditionalMiddlewareSemantics
(t *testing.T)
middleware/task_plugin_test.go:981
FunctionTestTaskPluginEndpointUsesOneCanonicalModelForDuplicateJSONKeys
(t *testing.T)
middleware/task_plugin_test.go:835
FunctionTestTaskPluginEntriesKeepJSONOrderForDeclaringPlugins
Native routes and the generic submit entry hand a plugin declaring json-order@1 the client's member order and keep its decoded requestBody as ordered
middleware/task_plugin_test.go:114
FunctionTestTaskPluginErrorFallbackIsSanitized
(t *testing.T)
middleware/task_plugin_test.go:1489
FunctionTestTaskPluginErrorFallbackMessageIncludesRequestID
(t *testing.T)
middleware/task_plugin_test.go:1712
FunctionTestTaskPluginGatewayIDConvergesUnderConcurrentCreation
(t *testing.T)
model/option_task_plugin_test.go:85
FunctionTestTaskPluginListAndDetailReportSkippedRoutes
The plugin list and detail name the declared routes the gateway leaves to the /{key} address, for the version that serves.
controller/task_plugin_test.go:1489
FunctionTestTaskPluginLogVisibilityIsRoleSeparated
(t *testing.T)
model/log_format_test.go:38
FunctionTestTaskPluginMarketplaceDefaultsIncludeCommunityButSavedListsStay
(t *testing.T)
setting/task_plugin_test.go:81
← previousnext →13,901–14,000 of 15,409, ranked by callers