MCPcopy Create free account

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

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

FunctionTestAccessTokenIdentityAndSingleLookup
(t *testing.T)
middleware/auth_test.go:526
FunctionTestAccessTokenLifecycleAndLateRequests
(t *testing.T)
controller/access_token_audit_test.go:182
FunctionTestAccessTokenRejectsTampering
(t *testing.T)
service/auth_token_test.go:43
FunctionTestAccessTokenRoundTripAndPurposeIsolation
(t *testing.T)
service/auth_token_test.go:22
FunctionTestAccessTokenRouteRulesCoverEveryDashboardRoute
(t *testing.T)
router/access_token_scope_test.go:101
FunctionTestAccessTokenScopeDictionaryIgnoresTheViewersGrants
The scope dictionary labels stored grants, so it must not shrink to what the viewer can grant today.
controller/access_token_audit_test.go:293
FunctionTestAccessTokenUpdateRenamesFreelyAndChangesGrantOnlyWithProof
(t *testing.T)
controller/access_token_audit_test.go:425
FunctionTestAccessTokenVerificationScopesAreAllListed
(t *testing.T)
router/access_token_scope_test.go:204
FunctionTestAcquireLogExportLock
(t *testing.T)
controller/log_export_test.go:217
FunctionTestActivateTaskPluginRefreshesRuntimeSyncState
(t *testing.T)
controller/task_plugin_test.go:913
FunctionTestActiveSessionCacheFillUsesRemainingObservationWindow
(t *testing.T)
model/user_session_test.go:182
FunctionTestAdapterAddPolicyIsIdempotent
(t *testing.T)
service/authz/authz_test.go:255
FunctionTestAdaptorBuildBalanceRequestRequiresConfiguredRoute
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:513
FunctionTestAdaptorBuildBalanceRequestUsesConfiguredRoute
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:483
FunctionTestAdaptorBuildModelListRequestDefaultAndNoAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:404
FunctionTestAdaptorBuildModelListRequestDoesNotReuseRelayRoute
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:443
FunctionTestAdaptorBuildModelListRequestRequiresConfiguredRoute
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:468
FunctionTestAdaptorBuildModelListRequestUsesConfiguredQueryAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:374
FunctionTestAdaptorBuildModelListRequestUsesConfiguredRouteAuth
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:345
FunctionTestAdaptorConvertsClaudeAndGeminiRequestsToResponsesUpstream
Claude Messages and Gemini Generate Content clients on an OpenAI Responses upstream: the request carries the hosted web search as a Responses tool and
relay/channel/advancedcustom/adaptor_test.go:1131
FunctionTestAdaptorConvertsClaudeRequestToOpenAIChatUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:926
FunctionTestAdaptorConvertsGeminiRequestToOpenAIChatUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:956
FunctionTestAdaptorConvertsOpenAIChatRequestToClaudeUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:870
FunctionTestAdaptorConvertsOpenAIChatRequestToGeminiUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:898
FunctionTestAdaptorConvertsOpenAIChatRequestToResponsesUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:843
FunctionTestAdaptorConvertsResponsesRequestToOpenAIChatUpstream
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:526
FunctionTestAdaptorCrossProtocolChatUpstreamRequestsStreamUsage
(t *testing.T)
relay/channel/advancedcustom/adaptor_test.go:991
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
FunctionTestAdaptorResponsesToClaudeMessages
A /v1/responses route to Anthropic Messages converts the request, sends the Claude headers and turns the Messages reply, plain or streamed, back into
relay/channel/advancedcustom/adaptor_test.go:745
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:224
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:316
FunctionTestAdvancedCustomMatchPathForModelExactRuleDoesNotMatchPrefix
(t *testing.T)
relaykit/dto/channel_settings_test.go:411
FunctionTestAdvancedCustomMatchPathForModelRegexRules
(t *testing.T)
relaykit/dto/channel_settings_test.go:353
FunctionTestAdvancedCustomMatchPathForModelUsesFirstMatchingRegexRoute
(t *testing.T)
relaykit/dto/channel_settings_test.go:487
FunctionTestAdvancedCustomModelListRouteRequiresExactIncomingPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:145
FunctionTestAdvancedCustomRouteModelRegexRulesAreCachedCompiled
(t *testing.T)
relaykit/dto/channel_settings_test.go:390
FunctionTestAdvancedCustomSupportedEndpointTypesForModel
(t *testing.T)
relaykit/dto/channel_settings_test.go:511
FunctionTestAdvancedCustomValidateAlphaSearchConverterPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:561
FunctionTestAdvancedCustomValidateBalanceRouteConstraints
(t *testing.T)
relaykit/dto/channel_settings_test.go:165
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsDuplicateRegexModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:464
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsInvalidRegexModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:434
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsMultipleCatchAllRoutes
(t *testing.T)
relaykit/dto/channel_settings_test.go:273
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRejectsOverlappingModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:250
FunctionTestAdvancedCustomValidateDuplicateIncomingPathRequiresCatchAllLast
(t *testing.T)
relaykit/dto/channel_settings_test.go:294
FunctionTestAdvancedCustomValidateDuplicateIncomingPathWithDisjointModels
(t *testing.T)
relaykit/dto/channel_settings_test.go:229
FunctionTestAdvancedCustomValidateModelListRouteConstraints
(t *testing.T)
relaykit/dto/channel_settings_test.go:77
FunctionTestAdvancedCustomValidateResponsesToChatConverterPath
(t *testing.T)
relaykit/dto/channel_settings_test.go:13
FunctionTestAdvancedCustomValidateRoutePassThroughBody
(t *testing.T)
relaykit/dto/channel_settings_test.go:604
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:2734
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
← previousnext →11,801–11,900 of 15,592, ranked by callers