MCPcopy Create free account

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

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

FunctionTestHailuoArtifactContentProxy
MiniMax serves v1 videos only through the signed download_url of v1/files/retrieve; that link is signed for GET, so HEAD clients get GET too.
plugins/hailuo_responses_test.go:118
FunctionTestHailuoExtractUsageFacts
(t *testing.T)
plugins/hailuo_responses_test.go:501
FunctionTestHailuoH3ArtifactContentProxy
The /v2 result is a public CDN URL, so its artifact is proxied without channel credentials instead of through the /v1 file download endpoint.
plugins/hailuo_responses_test.go:598
FunctionTestHailuoH3BuildSubmitRequest
MiniMax-H3 submits to /v2/video_generation with a multimodal content array instead of the flat /v1 frame fields.
plugins/hailuo_responses_test.go:199
FunctionTestHailuoH3CompletionUsageFacts
(t *testing.T)
plugins/hailuo_responses_test.go:543
FunctionTestHailuoH3PassesOpenAIVideoDecode
Without an H3 exemption the shared /v1 combo table would reject every H3 duration on the OpenAI Video path before the request is ever built.
plugins/hailuo_responses_test.go:669
FunctionTestHailuoH3RejectsOutOfContractRequests
Every MiniMax-H3 request bound is rejected before the upstream call, so an out-of-range duration can never reach quota calculation as a billing fact.
plugins/hailuo_responses_test.go:331
FunctionTestHailuoLegacySubmitRequestUnchanged
The /v1 models keep the flat request shape and endpoint.
plugins/hailuo_responses_test.go:405
FunctionTestHailuoNativeFileIDIsTheTaskAndRetrieveReturnsTheGatewayDownload
MiniMax's v1 query reports the video's file_id and /v1/files/retrieve resolves it. Through the gateway the file id is the task id, and the download_ur
plugins/hailuo_responses_test.go:977
FunctionTestHailuoParseSubmitResponse
The /v2 create response carries only task_id, without the /v1 base_resp envelope.
plugins/hailuo_responses_test.go:630
FunctionTestHailuoParseTaskResult
(t *testing.T)
plugins/hailuo_responses_test.go:461
FunctionTestHailuoQueryRequestEndpointByModel
(t *testing.T)
plugins/hailuo_responses_test.go:417
FunctionTestHailuoResponsesProtocol
(t *testing.T)
plugins/hailuo_responses_test.go:24
FunctionTestHailuoThroughNewAPIGateway
A New API channel reaches this plugin on another gateway. The downstream driver addresses the gateway's /hailuo routes, whose decoders give the gatewa
plugins/hailuo_responses_test.go:693
FunctionTestHailuoUsageProfilesPerModel
Every model selects only the dimensions it can actually bill, while submission still reports the union so prices saved against the previous schema kee
plugins/hailuo_responses_test.go:54
FunctionTestHandleClaudeResponseDataCountsToolUse
(t *testing.T)
relay/channel/claude/tool_billing_test.go:19
FunctionTestHardDeleteUserFailsClosedWhenAuthFenceCannotPublish
(t *testing.T)
model/user_authentication_test.go:22
FunctionTestHardDeleteUserPublishesTombstoneAndPurgesAuthenticationData
(t *testing.T)
model/user_authentication_test.go:81
FunctionTestHeaderNavModuleAuthAllowsDefaultPublicAccess
(t *testing.T)
middleware/header_nav_test.go:85
FunctionTestHeaderNavModuleAuthRejectsDisabledPricing
(t *testing.T)
middleware/header_nav_test.go:93
FunctionTestHeaderNavModuleAuthRejectsLegacyDisabledModule
(t *testing.T)
middleware/header_nav_test.go:193
FunctionTestHeaderNavModuleAuthRequiresLoginForPricing
(t *testing.T)
middleware/header_nav_test.go:175
FunctionTestHeaderNavModuleAuthRequiresLoginForRankings
(t *testing.T)
middleware/header_nav_test.go:184
FunctionTestHeaderNavModulePublicOrUserAuthAllowsDefaultPublicAccess
(t *testing.T)
middleware/header_nav_test.go:202
FunctionTestHeaderNavModulePublicOrUserAuthAllowsLoggedInWhenDisabled
(t *testing.T)
middleware/header_nav_test.go:219
FunctionTestHeaderNavModulePublicOrUserAuthRequiresLoginForLegacyDisabledModule
(t *testing.T)
middleware/header_nav_test.go:237
FunctionTestHeaderNavModulePublicOrUserAuthRequiresLoginWhenDisabled
(t *testing.T)
middleware/header_nav_test.go:210
FunctionTestHeaderNavModulePublicOrUserAuthRequiresLoginWhenRequireAuth
(t *testing.T)
middleware/header_nav_test.go:228
FunctionTestHeaderNavPublicRouteRejectsExpiredInternalAccessToken
(t *testing.T)
middleware/header_nav_test.go:246
FunctionTestHeaderPatchHonorsCallerProtection
(t *testing.T)
pkg/requestpatch/patch_test.go:104
FunctionTestHeaderPatchRejectsInjection
(t *testing.T)
pkg/requestpatch/patch_test.go:113
FunctionTestHeaderPatchRejectsProtectedHeaders
(t *testing.T)
pkg/requestpatch/patch_test.go:89
FunctionTestHeaderProbeHelper
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:254
FunctionTestHostJSONCodecConformance
TestHostJSONCodecConformance runs through the codec injected by common's init() and locks the encoding semantics the relay DTOs depend on. A future en
common/json_test.go:95
FunctionTestHostProtocolRegistryDrivesProtocolRoutesOnce
(t *testing.T)
router/task_plugin_protocol_router_test.go:12
FunctionTestHourlySuccessSeriesWeightsSmallerBuckets
(t *testing.T)
pkg/perf_metrics/metrics_test.go:105
FunctionTestImageAudioVariables
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:1039
FunctionTestImageAudioZero
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:1051
FunctionTestImageBillingRequestValidatesProviderCountWithoutOverriding
Provider `parameters.n` is still bounded at ingress so a malformed multiplier is a client error, but the billing quantity always follows the top-level
relay/helper/openai_image_request_test.go:122
FunctionTestImageCacheBilling
(t *testing.T)
service/tiered_settle_test.go:763
FunctionTestImageCacheDetailsSurviveUsageSnapshots
(t *testing.T)
relaykit/dto/billing_usage_test.go:52
FunctionTestImageCacheUsageAcrossResponseFormats
(t *testing.T)
relay/channel/openai/image_stream_test.go:86
FunctionTestImageCompressPlugin
(t *testing.T)
plugins/request_plugins_test.go:472
FunctionTestImageExpressionUsesCompletedCountAndProtectsAbortedStreams
(t *testing.T)
relay/channel/openai/image_stream_test.go:42
FunctionTestImageGenerationCallCounterCommitCapsAtMaxImageN
(t *testing.T)
relay/common/tool_usage_test.go:395
FunctionTestImageGenerationCallCounterCommitDoesNotBillDeclarationsAlone
(t *testing.T)
relay/common/tool_usage_test.go:415
FunctionTestImageGenerationCallCounterCompletedOutputs
(t *testing.T)
relay/common/tool_usage_test.go:176
FunctionTestImageHelperKeepsAdaptorClassifiedConvertError
An Ali image model the alibaba task plugin does not claim is rejected by the adaptor with a classified 400 that skips retries. ImageHelper must surfac
relay/convert_request_error_test.go:349
FunctionTestImageModelBuiltinPricesAndOverrides
(t *testing.T)
setting/billing_setting/builtin_billing_test.go:117
FunctionTestImageNeedsSize
(t *testing.T)
tokenkit/image_test.go:116
FunctionTestImageRequestPreserveGPTImage26Fields
契约:gpt-image-2.6 新增的请求字段是已知字段,不能落进 Extra 被序列化丢掉。
relaykit/dto/openai_request_zero_value_test.go:332
FunctionTestImageRequestReservesFinalQuantityBeforeUpstream
(t *testing.T)
relay/convert_request_error_test.go:48
FunctionTestImageTokenVariable
--------------------------------------------------------------------------- Image and audio token tests ----------------------------------------------
pkg/billingexpr/billingexpr_test.go:1015
FunctionTestImageTokensBoundForgedSizes
Image dimensions come from client-supplied headers; the cost stays bounded.
tokenkit/image_test.go:107
FunctionTestImageTokensMatchUpstreamUsage
Unless marked otherwise, want is the per-image prompt-token cost measured through upstream usage (request with the image minus the same request withou
tokenkit/image_test.go:12
FunctionTestImmediateTaskSettlementDatabase
(t *testing.T)
controller/relay_task_plugin_test.go:546
FunctionTestInMemoryRateLimiterAllocatesTimestampsOnDemand
(t *testing.T)
common/rate-limit_test.go:13
FunctionTestInMemoryRateLimiterCleanupTicksEvictExpiredKeys
(t *testing.T)
common/rate-limit_test.go:96
FunctionTestInMemoryRateLimiterConcurrentInitializationAndRequests
(t *testing.T)
common/rate-limit_test.go:130
FunctionTestInMemoryRateLimiterEnforcesWindowBoundary
(t *testing.T)
common/rate-limit_test.go:29
FunctionTestInMemoryRateLimiterEvictsOnlyExpiredLRUTail
(t *testing.T)
common/rate-limit_test.go:69
FunctionTestInMemoryRateLimiterInitKeepsFirstConfiguration
(t *testing.T)
common/rate-limit_test.go:119
FunctionTestInMemoryRateLimiterKeepsNonExpiredRequests
(t *testing.T)
common/rate-limit_test.go:57
FunctionTestInMemoryRateLimiterRemovesAllExpiredRequestsPerCall
(t *testing.T)
common/rate-limit_test.go:43
FunctionTestIncrementFailedAttemptsCountsConcurrentFailures
(t *testing.T)
model/user_authentication_test.go:141
FunctionTestIncrementFailedAttemptsRestartsWindowAfterLockoutExpires
(t *testing.T)
model/user_authentication_test.go:168
FunctionTestIndependentAuditLogStores
(t *testing.T)
controller/access_token_audit_test.go:1168
FunctionTestIndependentRedisAuthVersionAdvanceConvergesAfterCacheTTL
(t *testing.T)
service/auth_session_test.go:396
FunctionTestIndependentRedisSessionRevokeConvergesAfterCacheTTL
(t *testing.T)
service/auth_session_test.go:371
FunctionTestInferencePresetSettingsAndDatabaseRoundTrip
(t *testing.T)
model/channel_settings_test.go:111
FunctionTestIngressWritesBackTheBody
(t *testing.T)
relay/requestplugin/requestplugin_test.go:378
FunctionTestInitChannelCacheInvalidatesPricingCache
(t *testing.T)
model/pricing_endpoint_test.go:193
FunctionTestInitChannelCacheInvalidatesStartupPricingBuiltBeforeChannelCache
(t *testing.T)
model/pricing_endpoint_test.go:232
FunctionTestInitChannelMetaAppliesAdvancedCustomRoutePassThrough
(t *testing.T)
relay/common/relay_info_test.go:233
FunctionTestInitChannelMetaResetsPerAttemptStreamStateAndPreservesRequestState
(t *testing.T)
relay/common/relay_info_test.go:311
FunctionTestInitChannelMetaRestoresRequestReasoningEffortForRetry
(t *testing.T)
relay/common/relay_info_test.go:213
FunctionTestInitOnSlaveOnlyLoadsPolicies
(t *testing.T)
service/authz/authz_test.go:56
FunctionTestInitSeedsBuiltInRolesAndPoliciesOnce
(t *testing.T)
service/authz/authz_test.go:30
FunctionTestInitSessionCookieSettingsAllowsMultipleTrustedURLs
(t *testing.T)
common/url_validator_test.go:179
FunctionTestInitSessionCookieSettingsDefaultsToInsecure
(t *testing.T)
common/url_validator_test.go:133
FunctionTestInitSessionCookieSettingsEnablesSecureCookie
(t *testing.T)
common/url_validator_test.go:169
FunctionTestInitSessionCookieSettingsNormalizesExactOrigins
(t *testing.T)
common/url_validator_test.go:197
FunctionTestInitSessionCookieSettingsRejectsEmptyTrustedURLInList
(t *testing.T)
common/url_validator_test.go:189
FunctionTestInitSessionCookieSettingsRejectsNonOriginURLs
(t *testing.T)
common/url_validator_test.go:206
FunctionTestInitSessionCookieSettingsRequiresBothEnvVars
(t *testing.T)
common/url_validator_test.go:143
FunctionTestInitSessionCookieSettingsRequiresHTTPSURL
(t *testing.T)
common/url_validator_test.go:161
FunctionTestInitUserSessionSettingsUsesPositiveFallbacksAndClampsWindow
(t *testing.T)
common/user_session_test.go:9
FunctionTestInitializeExternalIdentityClaimsIsIdempotent
(t *testing.T)
model/external_identity_claim_test.go:63
FunctionTestInitializeExternalIdentityClaimsRejectsAmbiguousLegacyBindings
(t *testing.T)
model/external_identity_claim_test.go:77
FunctionTestInputPreConsumeMultiplierLegacyAndRequestPrices
(t *testing.T)
relay/helper/price_test.go:749
FunctionTestInputTokenDetailsCacheCreationInputTokens
(t *testing.T)
relaykit/dto/usage_merge_test.go:295
FunctionTestInsertKeepsBlankPasswordForPasswordlessUser
(t *testing.T)
model/user_update_test.go:283
FunctionTestInsertRejectsDuplicateEmailWithoutUniqueIndex
(t *testing.T)
model/user_update_test.go:258
FunctionTestIntValueUnmarshalJSON
(t *testing.T)
relaykit/dto/values_test.go:11
FunctionTestIntentStateRoundTrip
(t *testing.T)
relaykit/relayconvert/reasoning/intent_test.go:190
FunctionTestIntersectModelNames
(t *testing.T)
controller/channel_upstream_update_test.go:451
FunctionTestInvalidateCache
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:542
FunctionTestInvalidateProxyClientClosesAllPolicyVariants
(t *testing.T)
service/http_client_transport_test.go:437
FunctionTestIoNetConnection
(c *gin.Context)
controller/deployment.go:58
FunctionTestIsAlwaysSkipRetryStatusCode
(t *testing.T)
setting/operation_setting/status_code_ranges_test.go:83
← previousnext →12,601–12,700 of 15,409, ranked by callers