MCPcopy Create free account

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

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

FunctionTestAdaptorConvertsGeminiRequestToOpenAIChatUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:855
FunctionTestAdaptorConvertsOpenAIChatRequestToClaudeUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:769
FunctionTestAdaptorConvertsOpenAIChatRequestToGeminiUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:797
FunctionTestAdaptorConvertsOpenAIChatRequestToResponsesUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:742
FunctionTestAdaptorConvertsResponsesRequestToOpenAIChatUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:526
FunctionTestAdaptorCrossProtocolChatUpstreamRequestsStreamUsage
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:890
FunctionTestAdaptorInheritsNewAPIResponsesCompactSupport
(t *testing.T)
relay/channel/sub2api/adaptor_test.go:31
FunctionTestAdaptorJoinsUpstreamPathWithChannelBaseURL
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:112
FunctionTestAdaptorMasksDialedHostsInDialFailure
An absolute route sends the request to a host other than the channel base URL, and a channel proxy is dialed before the upstream; a failed handshake m
relay/channel/advancedcustom/adaptor_test.go:63
FunctionTestAdaptorMatchesGeminiIncomingPathTemplate
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:303
FunctionTestAdaptorReplacesModelPlaceholderInRouteURL
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:245
FunctionTestAdaptorResponsesToGeminiAddsThoughtSignatureForFunctionCallHistory
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:681
FunctionTestAdaptorResponsesToGeminiUsesResponsesBridge
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:625
FunctionTestAdaptorReturnsErrorWhenNoRouteMatchesPath
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:227
FunctionTestAdaptorReturnsErrorWhenUpstreamPathNeedsMissingBaseURL
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:142
FunctionTestAdaptorSelectsDuplicateResponsesRoutesByModel
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:568
FunctionTestAdaptorSetupRequestHeaderAddsClaudeDefaultHeaders
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:202
FunctionTestAdaptorSetupRequestHeaderUsesConfiguredHeaderAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:178
FunctionTestAdaptorSetupRequestHeaderUsesDefaultBearerAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:160
FunctionTestAdaptorSwitchesGeminiGenerateContentURLForStream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:273
FunctionTestAdaptorUsesExactRouteAndQueryAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:30
FunctionTestAddChannelInvalidVertexBatchDoesNotReturnResults
(t *testing.T)
controller/channel_create_test.go:170
FunctionTestAddChannelPanicRollsBackWithoutSuccess
(t *testing.T)
controller/channel_create_test.go:229
FunctionTestAddChannelReturnsCreatedIDs
(t *testing.T)
controller/channel_create_test.go:54
FunctionTestAddChannelRollbackDoesNotReturnIDs
(t *testing.T)
controller/channel_create_test.go:195
FunctionTestAddChannelTaskPluginPersistsPluginDefaultBaseURLAndAuditsSource
(t *testing.T)
controller/channel_task_plugin_bind_test.go:133
FunctionTestAddChannelTaskPluginRequiresBindPermission
(t *testing.T)
controller/channel_task_plugin_bind_test.go:59
FunctionTestAddChannelWithoutKeyForALoginPlugin
(t *testing.T)
controller/provider_plugin_test.go:132
FunctionTestAddTokenEmptyAutoGroupsInheritGlobalAuto
(t *testing.T)
controller/token_auto_groups_test.go:74
FunctionTestAddTokenPersistsOrderedAutoGroupsSnapshot
(t *testing.T)
controller/token_auto_groups_test.go:112
FunctionTestAddTokenRejectsInvalidAutoGroups
(t *testing.T)
controller/token_auto_groups_test.go:187
FunctionTestAdjacentNodeGenerationsKeepPinnedPluginExecutable
(t *testing.T)
pkg/jsplugin/routing_test.go:511
FunctionTestAdminResetPlanSubscriptionsNoMatchSucceeds
(t *testing.T)
model/subscription_reset_test.go:180
FunctionTestAdminResetPlanSubscriptionsResetsAllActiveUsers
(t *testing.T)
model/subscription_reset_test.go:140
FunctionTestAdminResetUserSubscriptionsByPlanKeepsResetTimes
(t *testing.T)
model/subscription_reset_test.go:89
FunctionTestAdminResetUserSubscriptionsByPlanNoActiveMatchReturnsError
(t *testing.T)
model/subscription_reset_test.go:118
FunctionTestAdminResetUserSubscriptionsByPlanResetsAllActiveMatchesAndAdvancesTime
(t *testing.T)
model/subscription_reset_test.go:29
FunctionTestAdminUserBindingProofDistinguishesBuiltInAndCustomBindings
(t *testing.T)
controller/admin_user_verification_test.go:296
FunctionTestAdminUserProofIsBoundToTargetAndActionAndConsumedOnce
(t *testing.T)
controller/admin_user_verification_test.go:240
FunctionTestAdminUserRiskOperationsRequireProofBeforeMutation
(t *testing.T)
controller/admin_user_verification_test.go:53
FunctionTestAdminUserRoutineEditsDoNotRequireProof
An administrator (not root) exercises the routine paths without touching the Casbin policy store, which the security fixture does not provision.
controller/admin_user_verification_test.go:194
FunctionTestAdminUserVerificationPolicy
(t *testing.T)
controller/admin_user_verification_test.go:325
FunctionTestAdvancedCustomChannelRequiresModelListRouteOnlyWhenUpdateChecksEnabled
(t *testing.T)
model/channel_settings_test.go:53
FunctionTestAdvancedCustomMatchPathForModel
(t *testing.T)
relaykit/dto/channel_settings_test.go:301
FunctionTestAdvancedCustomMatchPathForModelExactRuleDoesNotMatchPrefix
(t *testing.T)
relaykit/dto/channel_settings_test.go:396
FunctionTestAdvancedCustomMatchPathForModelRegexRules
(t *testing.T)
relaykit/dto/channel_settings_test.go:338
FunctionTestAdvancedCustomMatchPathForModelUsesFirstMatchingRegexRoute
(t *testing.T)
relaykit/dto/channel_settings_test.go:472
FunctionTestAdvancedCustomModelListRouteRequiresExactIncomingPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:130
FunctionTestAdvancedCustomRouteModelRegexRulesAreCachedCompiled
(t *testing.T)
relaykit/dto/channel_settings_test.go:375
FunctionTestAdvancedCustomSupportedEndpointTypesForModel
(t *testing.T)
relaykit/dto/channel_settings_test.go:496
FunctionTestAdvancedCustomValidateAlphaSearchConverterPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:546
FunctionTestAdvancedCustomValidateBalanceRouteConstraints
(t *testing.T)
relaykit/dto/channel_settings_test.go:150
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsDuplicateRegexModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:449
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsInvalidRegexModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:419
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsMultipleCatchAllRoutes
(t *testing.T)
relaykit/dto/channel_settings_test.go:258
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsOverlappingModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:235
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRequiresCatchAllLast
(t *testing.T)
relaykit/dto/channel_settings_test.go:279
FunctionTestAdvancedCustomValidateDuplicateIncomingPathWithDisjointModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:214
FunctionTestAdvancedCustomValidateModelListRouteConstraints
(t *testing.T)
relaykit/dto/channel_settings_test.go:62
FunctionTestAdvancedCustomValidateResponsesToChatConverterPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:13
FunctionTestAdvancedCustomValidateRoutePassThroughBody
(t *testing.T)
relaykit/dto/channel_settings_test.go:588
FunctionTestAliResponsesWebSearchUsage
DashScope Responses bills web search like the agent strategy and reports the count in usage.x_tools; it replaces the web_search_call items counted und
relay/channel/ali/adaptor_test.go:316
FunctionTestAlibabaImageResults
(t *testing.T)
plugins/alibaba_responses_test.go:832
FunctionTestAlibabaImageSubmission
(t *testing.T)
plugins/alibaba_responses_test.go:711
FunctionTestAlibabaImageValidation
(t *testing.T)
plugins/alibaba_responses_test.go:786
FunctionTestAlibabaInterleavedStreamOutcomes
Interleaved Wan output is a stream for a native client that asks for one with X-DashScope-Sse. DashScope's error event reaches the client and ends the
plugins/alibaba_responses_test.go:1043
FunctionTestAlibabaNativeRequestsGoAsSent
DashScope's own bodies go to DashScope as sent, for it to check. The gateway asks the asynchronous endpoints for a task itself, sends a video body to
plugins/alibaba_responses_test.go:1104
FunctionTestAlibabaOpenAIImageCountDerivationAndRender
Count derivation for synchronous image results: usage.image_count first, then the Qwen-Image-3.0 usage.output_image_count, then image payloads flatten
plugins/alibaba_responses_test.go:1496
FunctionTestAlibabaOpenAIImageDecodeAndSubmission
OpenAI image requests map onto the DashScope services the models support, reserve the requested count, and reject counts the vendor would refuse befor
plugins/alibaba_responses_test.go:1271
FunctionTestAlibabaOpenAIImageProtocolBindings
The OpenAI Images protocol claims every declared image model on both image endpoints; chat and video models keep the built-in relay.
plugins/alibaba_responses_test.go:1230
FunctionTestAlibabaResponsesProtocol
(t *testing.T)
plugins/alibaba_responses_test.go:29
FunctionTestAlibabaSubmitDeltaDoesNotMutateControlState
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2665
FunctionTestAlibabaSynchronousMultiImageAndStream
(t *testing.T)
plugins/alibaba_responses_test.go:963
FunctionTestAlibabaWan3
(t *testing.T)
plugins/alibaba_wan3_test.go:13
FunctionTestAlibabaWanCompatibilityParameters
(t *testing.T)
plugins/alibaba_responses_test.go:443
FunctionTestAlibabaWanCompletionFactsAndArtifacts
(t *testing.T)
plugins/alibaba_responses_test.go:656
FunctionTestAlibabaWanDurationValidation
(t *testing.T)
plugins/alibaba_responses_test.go:547
FunctionTestAlibabaWanEntrypointsPreserveOptions
(t *testing.T)
plugins/alibaba_responses_test.go:505
FunctionTestAlibabaWanFlashAudioFact
(t *testing.T)
plugins/alibaba_responses_test.go:475
FunctionTestAlibabaWanMediaInputs
(t *testing.T)
plugins/alibaba_responses_test.go:604
FunctionTestAlibabaWanModelCapabilities
(t *testing.T)
plugins/alibaba_responses_test.go:355
FunctionTestAllowFallsBackToEvalAfterScriptFlush
(t *testing.T)
common/limiter/limiter_test.go:38
FunctionTestAppendToolSurchargeLogInfoWritesOnlyStructuredFields
(t *testing.T)
service/text_quota_test.go:1657
FunctionTestAppendUsageBillingPathForLogWritesAdminInfo
(t *testing.T)
service/text_quota_test.go:735
FunctionTestApplyChannelAffinityOverrideTemplate_MergeOperations
(t *testing.T)
service/channel_affinity_template_test.go:83
FunctionTestApplyChannelAffinityOverrideTemplate_MergeTemplate
(t *testing.T)
service/channel_affinity_template_test.go:43
FunctionTestApplyChannelAffinityOverrideTemplate_NoTemplate
(t *testing.T)
service/channel_affinity_template_test.go:30
FunctionTestApplyChannelPinPreservesOriginTasksAndRetryMode
(t *testing.T)
relay/relay_task_test.go:137
FunctionTestApplyFailuresAreAtomic
(t *testing.T)
pkg/requestpatch/patch_test.go:51
FunctionTestApplyHeaderPatch
(t *testing.T)
pkg/requestpatch/patch_test.go:78
FunctionTestApplyJSONPatchOperations
(t *testing.T)
pkg/requestpatch/patch_test.go:22
FunctionTestApplyKeepsUntouchedTextExactly
The body is written from its parsed text, so a patch changes only what it addresses: numbers keep their digits and members keep their order.
pkg/requestpatch/patch_test.go:44
FunctionTestApplyOriginTaskIntent
(t *testing.T)
middleware/task_plugin_origin_task_test.go:89
FunctionTestApplyOriginTaskIntentAbsentAndEmptyAreNoop
(t *testing.T)
middleware/task_plugin_origin_task_test.go:214
FunctionTestApplyParamOverrideAppendObjectMergeKeepOrigin
(t *testing.T)
relay/common/override_test.go:729
FunctionTestApplyParamOverrideAppendObjectMergeOverride
(t *testing.T)
relay/common/override_test.go:752
FunctionTestApplyParamOverrideConditionAND
(t *testing.T)
relay/common/override_test.go:948
FunctionTestApplyParamOverrideConditionByGroupContext
(t *testing.T)
relay/common/override_test.go:1576
FunctionTestApplyParamOverrideConditionByUserAndGPTModel
(t *testing.T)
relay/common/override_test.go:1507
FunctionTestApplyParamOverrideConditionFromContext
(t *testing.T)
relay/common/override_test.go:1034
← previousnext →11,701–11,800 of 15,409, ranked by callers