MCPcopy Create free account

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

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

FunctionTestPluginProtocolObservationLimiterReleaseIsIdempotent
(t *testing.T)
controller/plugin_protocol_limiter_test.go:135
FunctionTestPluginProtocolObservationLimiterRollsBackFailedAdmission
(t *testing.T)
controller/plugin_protocol_limiter_test.go:93
FunctionTestPluginRequestPinsGenerationAcrossHotSwap
(t *testing.T)
router/plugin_router_test.go:279
FunctionTestPluginResponsesMachineEnforcesCumulativeOutputLimit
(t *testing.T)
relay/plugin_protocol_test.go:503
FunctionTestPluginResponsesMachineFinalFromEvents
(t *testing.T)
relay/plugin_protocol_test.go:523
FunctionTestPluginResponsesMachineNonStreamShapes
(t *testing.T)
relay/plugin_protocol_test.go:311
FunctionTestPluginResponsesMachineOwnsIDsSequenceAndLifecycle
(t *testing.T)
relay/plugin_protocol_test.go:163
FunctionTestPluginResponsesMachinePendingResponse
(t *testing.T)
relay/plugin_protocol_test.go:431
FunctionTestPluginResponsesMachineProgressDoesNotRepeatAccumulatedOutput
(t *testing.T)
relay/plugin_protocol_test.go:478
FunctionTestPluginResponsesMachineSanitizesFailure
(t *testing.T)
relay/plugin_protocol_test.go:255
FunctionTestPluginResponsesMachineUsesVerbatimStringOutput
(t *testing.T)
relay/plugin_protocol_test.go:237
FunctionTestPluginRouteCanCutOffItsClientStream
A plugin route reaches the client connection through the gated writer: a relayed stream that stopped early cuts it off, and the client sees the stream
router/plugin_router_test.go:208
FunctionTestPluginRouteOwnershipCanSwapWithinOneGeneration
(t *testing.T)
router/plugin_router_test.go:603
FunctionTestPluginRouteRecoverySanitizesPanicResponse
(t *testing.T)
router/plugin_router_test.go:831
FunctionTestPluginSSEFlushesWithoutFallbackBuffering
(t *testing.T)
router/plugin_router_test.go:174
FunctionTestPluginStaticRouteConflictsAreExcluded
A host route, or the trailing-slash redirect it causes, shadows only the top-level route of a built-in plugin; the /{key} copy still serves it.
router/plugin_router_test.go:359
FunctionTestPluginStreamErrors
(t *testing.T)
router/provider_plugin_relay_test.go:1191
FunctionTestPluginTaskPricesBesideAChatPrice
A model-level price that is only a chat price leaves plugin tasks unpriced: an expression reading chat request quantities (token counts, bare image_co
model/pricing_usage_schema_test.go:321
FunctionTestPluginTrailingSlashMissDoesNotRedirect
(t *testing.T)
router/plugin_router_test.go:142
FunctionTestPluginWithoutTaskPartRejectsTaskFields
(t *testing.T)
pkg/jsplugin/provider_test.go:81
FunctionTestPollingPassesExecutingChannelTypeToAdaptor
(t *testing.T)
service/task_polling_test.go:257
FunctionTestPooledRuntimeKeepsNoCallData
(t *testing.T)
pkg/jsplugin/engine_test.go:786
FunctionTestPositionalWildcardsKeepDeclaredParameterNames
The inner router names wildcards by position, so routes may name the same position differently; each reads its own parameter names.
router/plugin_router_test.go:678
FunctionTestPostTextConsumeQuotaBillsOpenAI12hCacheWrites
OpenAI 12h cache writes bill at twice the write price and keep their own count in the consume log, with ratio and expression pricing alike.
service/text_quota_test.go:923
FunctionTestPostTextConsumeQuotaLogsMissingUsageAsStructuredContent
A request whose upstream returns no usage is logged without a charge. The reason is stored as content_parts, which the web console renders in the view
service/text_quota_test.go:1679
FunctionTestPreConsumeBillingRejectsNegativeQuotaBeforeDeduction
(t *testing.T)
service/quota_saturation_test.go:129
FunctionTestPreConsumeBillingRejectsSaturatedQuotaBeforeDeduction
(t *testing.T)
service/quota_saturation_test.go:105
FunctionTestPreConsumeMultiplierRejectsInvalidRuntimeAndOverflow
(t *testing.T)
controller/billing_option_test.go:308
FunctionTestPreConsumePolicyDatabaseMatrix
Covers configuration persistence, validation, reservation and reconciliation through the same public entry points used by the relay.
controller/billing_option_test.go:193
FunctionTestPreflightRoutingConflict
(t *testing.T)
pkg/jsplugin/routing_test.go:203
FunctionTestPrepareMidjourneyTaskBillingKeepsUnbilledMarkerClear
=========================================================================== Legacy Midjourney billing tests ==========================================
service/task_billing_test.go:597
FunctionTestPrepareMidjourneyTaskBillingRejectsSubscriptionBeforeCharge
(t *testing.T)
service/task_billing_test.go:829
FunctionTestPrepareRequest
(t *testing.T)
router/provider_plugin_relay_test.go:656
FunctionTestPrepareRequestKeepsReformattedBillingFields
(t *testing.T)
router/provider_plugin_relay_test.go:735
FunctionTestPrepareRequestOverTheBodyLimit
Effects that grow the body past the request body limit fail the request as a client body over the limit does: 413, nothing sent, nothing billed.
router/provider_plugin_relay_test.go:712
FunctionTestPrepareRequestReachesTheOverriddenBody
(t *testing.T)
router/provider_plugin_relay_test.go:753
FunctionTestPrepareRequestReturnsEffectsAsText
(t *testing.T)
pkg/jsplugin/provider_test.go:511
FunctionTestPrepareResponsesRequestDeepSeekEffectiveReasoning
(t *testing.T)
relay/responses_request_test.go:27
FunctionTestPrepareResponsesRequestEgressReadsTheFinalizedBody
(t *testing.T)
relay/responses_request_test.go:111
FunctionTestPrepareResponsesRequestRetainsConvertedAdaptor
(t *testing.T)
relay/chat_completions_via_responses_test.go:25
FunctionTestPrepareTaskPluginDynamicDecoderRejectsRendererField
(t *testing.T)
middleware/task_plugin_test.go:1339
FunctionTestPrepareTaskPluginDynamicQueryPreservesOrderAndSkipsNextHandlers
(t *testing.T)
middleware/task_plugin_test.go:1265
FunctionTestPrepareTaskPluginEndpointAcceptsRegisteredVideoMultipartBody
(t *testing.T)
middleware/task_plugin_test.go:1089
FunctionTestPrepareTaskPluginEndpointClientDisconnectDoesNotCancelParseHook
(t *testing.T)
middleware/task_plugin_test.go:696
FunctionTestPrepareTaskPluginEndpointExposesIndexedRefsForRepeatedImageFiles
The OpenAI Images edits endpoint accepts multipart uploads. Every file of a repeated image[] field is exposed to the decoder with its own ref, and an
middleware/task_plugin_test.go:1137
FunctionTestPrepareTaskPluginEndpointFiltersEachSharedCandidate
(t *testing.T)
middleware/task_plugin_test.go:2052
FunctionTestPrepareTaskPluginEndpointPinsGenerationBeforeParseAndDistribution
(t *testing.T)
middleware/task_plugin_test.go:627
FunctionTestPrepareTaskPluginEndpointPinsOriginTaskChannel
(t *testing.T)
middleware/task_plugin_origin_task_test.go:295
FunctionTestPrepareTaskPluginEndpointRejectsModelDriftBeforeDistribution
(t *testing.T)
middleware/task_plugin_test.go:1047
FunctionTestPrepareTaskPluginEndpointRejectsUnknownOriginTask
(t *testing.T)
middleware/task_plugin_origin_task_test.go:330
FunctionTestPrepareTaskPluginEndpointSurfacesDecodeHookMessage
(t *testing.T)
middleware/task_plugin_test.go:1734
FunctionTestPrepareTaskPluginEndpointUsesStrictOriginalStreamFlag
(t *testing.T)
middleware/task_plugin_test.go:740
FunctionTestPrepareTaskPluginNativeRoutePassesMultipartToDecoder
(t *testing.T)
middleware/task_plugin_test.go:190
FunctionTestPrepareTaskPluginRouteAnswersSharedQueriesByTaskOwner
A query on a path several plugins declare is answered by the task's own plugin; a task none of them owns is as unknown as a missing one.
middleware/task_plugin_test.go:2525
FunctionTestPrepareTaskPluginRouteDecodesEverySharedSubmitCandidate
Every plugin declaring a submit path decodes the request; those accepting the first acceptor's model stay candidates for distribution, and /{key} keep
middleware/task_plugin_test.go:2431
FunctionTestPrepareTaskPluginRouteGivesQueryPresentersArtifacts
A query presenter receives the artifacts of a finished task as the gateway addresses Responses renderers get; a presenter with nothing to deliver for
middleware/task_plugin_test.go:2588
FunctionTestPrepareTaskPluginRouteKeepsRawBinaryOpaque
(t *testing.T)
middleware/task_plugin_test.go:1235
FunctionTestPrepareTaskPluginRouteMatchesChannelAliases
A case variant or a channel alias of a declared model is matched on a native path as on the host protocols: the task takes the declared spelling or ke
middleware/task_plugin_test.go:2465
FunctionTestPrepareTaskPluginRouteModelScope
(t *testing.T)
middleware/task_plugin_test.go:264
FunctionTestPrepareTaskPluginRouteNativeErrorReceivesHookMessage
(t *testing.T)
middleware/task_plugin_test.go:1603
FunctionTestPrepareTaskPluginRoutePinsOriginTaskChannel
(t *testing.T)
middleware/task_plugin_origin_task_test.go:223
FunctionTestPrepareTaskPluginRouteReadsQueryStringTaskID
A query route whose taskIdParam is not a path parameter reads the task id from the query string, as MiniMax's v1 query does.
middleware/task_plugin_test.go:2566
FunctionTestPrepareTaskPluginRouteRejectsNonObjectResultWithFixedMessage
(t *testing.T)
middleware/task_plugin_test.go:1639
FunctionTestPrepareTaskPluginRouteRejectsResolvedModelOutsideRouteScope
(t *testing.T)
middleware/task_plugin_test.go:321
FunctionTestPrepareTaskPluginRouteRejectsUnknownOriginTask
(t *testing.T)
middleware/task_plugin_origin_task_test.go:263
FunctionTestPrepareTaskPluginRouteSurfacesDecodeHookMessage
(t *testing.T)
middleware/task_plugin_test.go:1572
FunctionTestPrepareTaskPluginRouteSurfacesRequestDecodeDetail
(t *testing.T)
middleware/task_plugin_test.go:1670
FunctionTestPrepareTaskPluginRouteUsesCanonicalContextAndResolvedSubmit
(t *testing.T)
middleware/task_plugin_test.go:58
FunctionTestPrepareTaskPluginRouteWithoutModelScopeIsUnrestricted
(t *testing.T)
middleware/task_plugin_test.go:354
FunctionTestPrepareTaskPluginStaticQueryHidesTaskExistenceAndSanitizesErrors
(t *testing.T)
middleware/task_plugin_test.go:1377
FunctionTestPrepareTaskPluginSubmitDecoderRejectsRendererField
(t *testing.T)
middleware/task_plugin_test.go:1358
FunctionTestPrepareTaskPluginSubmitRejectsMissingModel
(t *testing.T)
middleware/task_plugin_test.go:44
FunctionTestPrepareTieredBillingForSelectedGroupPaidToFreeKeepsFreeModelFalse
(t *testing.T)
service/tiered_settle_test.go:418
FunctionTestPrepareTieredBillingForSelectedGroupStartsBillingAfterFreeGroup
(t *testing.T)
service/tiered_settle_test.go:375
FunctionTestPrepareTieredBillingForSelectedGroupTopUpArrearsAllowsNegativeBalance
(t *testing.T)
service/tiered_settle_test.go:447
FunctionTestPrepareTieredBillingForSelectedGroupUpdatesReservation
(t *testing.T)
service/tiered_settle_test.go:347
FunctionTestPresentTaskSubmissionFallbackUsesPersistedPublicID
(t *testing.T)
controller/relay_task_plugin_test.go:124
FunctionTestPresentTaskSubmissionHonorsReplyWrapperAndRelayedStreams
The submit presenter may answer with the vendor's status; a native route that already relayed the vendor's event stream gets nothing more.
controller/relay_task_plugin_test.go:96
FunctionTestPresentTaskSubmissionUsesHostOpenAIVideoCreateReceipt
(t *testing.T)
controller/relay_task_plugin_test.go:144
FunctionTestPresentTaskSubmissionUsesNativePresenterAfterPersistence
(t *testing.T)
controller/relay_task_plugin_test.go:63
FunctionTestPriceDataOtherRatiosFilterAndSnapshot
(t *testing.T)
service/task_billing_test.go:171
FunctionTestPriceDataReplaceAndApplyOtherRatios
(t *testing.T)
service/task_billing_test.go:195
FunctionTestPricingAdvancedCustomMissingConfigFallsBackToChannelType
(t *testing.T)
model/pricing_endpoint_test.go:165
FunctionTestPricingAdvancedCustomUsesConfiguredEndpointTypes
(t *testing.T)
model/pricing_endpoint_test.go:81
FunctionTestPricingAliasCarriesPluginUsageSchemaAndTailExpr
(t *testing.T)
model/pricing_usage_schema_test.go:71
FunctionTestPricingCarriesTaskUsageSchemaAndRefreshesWithPluginGeneration
(t *testing.T)
model/pricing_usage_schema_test.go:34
FunctionTestPricingConversionOfProviderChannelModels
(t *testing.T)
model/channel_plugin_credential_test.go:222
FunctionTestPricingModelMetadataEndpointsCanProvideEndpointWithoutChannelInference
(t *testing.T)
model/pricing_endpoint_test.go:139
FunctionTestPricingModelMetadataEndpointsMergeWithAdvancedCustomInference
(t *testing.T)
model/pricing_endpoint_test.go:110
FunctionTestPricingNativeChannelEndpointTypesUnchanged
(t *testing.T)
model/pricing_endpoint_test.go:176
FunctionTestPricingProviderChannelUsesRelayRoutes
(t *testing.T)
model/channel_plugin_credential_test.go:194
FunctionTestPricingSharedPluginVariantsUseEachSchemaAndExpression
(t *testing.T)
model/pricing_usage_schema_test.go:238
FunctionTestPricingSyncCompleteSourcesAndArrayFormats
(t *testing.T)
controller/ratio_sync_test.go:70
FunctionTestPricingSyncExpressionPriority
(t *testing.T)
controller/ratio_sync_test.go:18
FunctionTestPricingUsageProfilesAndAliases
(t *testing.T)
model/pricing_usage_schema_test.go:148
FunctionTestProcessChannelErrorMasksDisableReasonAndNotification
(t *testing.T)
service/relay_error_test.go:60
FunctionTestProcessChannelErrorUsesSnapshotWithoutLeakingChannelMetadata
(t *testing.T)
controller/relay_error_log_test.go:22
FunctionTestProcessHeaderOverride_ChannelTestSkipsClientHeaderPlaceholder
(t *testing.T)
relay/channel/api_request_test.go:51
FunctionTestProcessHeaderOverride_ChannelTestSkipsPassthroughRules
(t *testing.T)
relay/channel/api_request_test.go:28
FunctionTestProcessHeaderOverride_NonTestKeepsClientHeaderPlaceholder
(t *testing.T)
relay/channel/api_request_test.go:75
← previousnext →13,101–13,200 of 15,409, ranked by callers