Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
Function
TestReplyHookIsARequestProcessingPart
(t *testing.T)
pkg/jsplugin/provider_test.go:1077
Function
TestReplyLeavesThePathAloneWithoutReplyInstances
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1054
Function
TestReplyMasksNonStreamAnswers
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1086
Function
TestReplyNonStreamFormats
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1613
Function
TestReplyOptionOffDryRun
A built-in whose reply option is off lets the reply pass in a dry run: the step shows continue and the text comes back unchanged.
plugins/request_plugins_test.go:920
Function
TestReplyPassAfterAMask
A pass after a mask: the rest of the text is released as it comes, and the events that repeat the whole text still match what the client got.
relay/requestplugin/requestplugin_test.go:1322
Function
TestReplyPassHandsTheStreamOver
An instance that lets the answer pass is called once; with nothing masked the rest of the stream goes out as the handler writes it, unread.
relay/requestplugin/requestplugin_test.go:1287
Function
TestReplyRewritesResponsesFullTexts
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1414
Function
TestReplyStopsNonStreamAnswers
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1118
Function
TestReplyStopsStreams
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1387
Function
TestReplyStreamCallsOnTheFirstText
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1263
Function
TestReplyStreamHoldsTextAcrossChunks
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1224
Function
TestReplyUnchecked
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1182
Function
TestReportCaptureFollowsScope
The response is captured only once an instance that may report it is in scope, and a WebSocket response keeps its event capture.
relay/requestplugin/socket_test.go:489
Function
TestReportQueueDropsWhenFull
A full queue drops a finished request instead of blocking the request.
relay/requestplugin/requestplugin_test.go:924
Function
TestReportResponses
The record carries the error the client received, SSE events, and what a capture past 1 MiB keeps.
relay/requestplugin/requestplugin_test.go:838
Function
TestReportSuccess
A finished request reaches the report hooks of the channel's instances in plan order, after the response: a failing hook leaves the next one and the r
relay/requestplugin/requestplugin_test.go:782
Function
TestRequestAmountRejectsTopUpThatCannotBeSettled
(t *testing.T)
controller/topup_quota_limit_test.go:97
Function
TestRequestAmountRejectsTopUpThatWouldOverflowWallet
(t *testing.T)
controller/topup_quota_limit_test.go:126
Function
TestRequestBodyFailuresReportTheirCause
(t *testing.T)
middleware/task_plugin_test.go:887
Function
TestRequestConverterFacadeAcceptsTypedNilRelayInfo
(t *testing.T)
service/convert_test.go:68
Function
TestRequestConverterRegistryListsSupportedTextConverters
(t *testing.T)
relaykit/relayconvert/request_registry_test.go:97
Function
TestRequestDeepCopyOtherProtocols
(t *testing.T)
relay/request_clone_test.go:180
Function
TestRequestDeepCopyRawMutation
(t *testing.T)
relay/request_clone_test.go:132
Function
TestRequestDeepCopyResponses
(t *testing.T)
relay/request_clone_test.go:26
Function
TestRequestDescriptorDecodingMatchesCodec
(t *testing.T)
relay/channel/task/jsplugin/adaptor_test.go:2421
Function
TestRequestFilterKeywords
The keyword list matches in any letter case unless told otherwise, in the request text and in the text of its documents; images and files named by id
plugins/request_plugins_test.go:1179
Function
TestRequestFilterLegacyCheckedText
A migrated sensitive-word list checks at least the text the gateway's own check read: tool declarations, replayed tool calls and their results, chat m
plugins/request_plugins_test.go:1233
Function
TestRequestFilterPlugin
(t *testing.T)
plugins/request_plugins_test.go:65
Function
TestRequestFilterReply
(t *testing.T)
plugins/request_plugins_test.go:785
Function
TestRequestOpenAI2AliTopP
(t *testing.T)
relay/channel/ali/text_test.go:11
Function
TestRequestPluginInstancesAPI
(t *testing.T)
controller/task_plugin_test.go:2013
Function
TestRequestPluginsOnMidjourneySubmissions
A Midjourney submission runs the request plugins' ingress: a rejection answers in Midjourney's own format and is written to the error log, and a redac
router/provider_plugin_relay_test.go:2258
Function
TestRequestPluginsReachTheUpstream
(t *testing.T)
router/provider_plugin_relay_test.go:1976
Function
TestRequestPluginsReadTaskSubmissions
(t *testing.T)
plugins/request_plugins_test.go:1034
Function
TestRequestPluginsYieldToTheChannel
The channel's own settings win over request plugins: its param override runs after the outbound stage and its header override after the plugin headers
router/provider_plugin_relay_test.go:2073
Function
TestRequestPolicyConfigReturnsSettingsWithoutMigration
(t *testing.T)
controller/channel_pin_retry_test.go:109
Function
TestRequestPolicyDatabaseMatrix
(t *testing.T)
model/request_policy_test.go:22
Function
TestRequestPolicyEventsReachLogAdminInfo
(t *testing.T)
service/relay_error_test.go:234
Function
TestRequestPolicyRoutingDatabaseMatrix
(t *testing.T)
controller/channel_pin_retry_test.go:240
Function
TestRequestProbeHelpers
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:237
Function
TestRequestProbeInternalTraceFunctionIsReserved
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:387
Function
TestRequestProbeMissingFieldReturnsNil
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:307
Function
TestRequestProbeMultipleRulesTraceAllFactors
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:323
Function
TestRequestProbeNonUnitFallbackIsNotTraced
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:375
Function
TestRequestProbeTraceIncludesUnmatchedFactors
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:345
Function
TestRequestProbeTracePreservesIntegerConditionalType
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:361
Function
TestRequestRedactAttachments
A text file read whole takes the redacted text. A PDF that holds a match cannot be rewritten: with the check before sending on it rejects the request,
plugins/request_plugins_test.go:1296
Function
TestRequestRedactManyChanges
More changed texts than the host takes json.patch operations still redact every one: the changes are written as replaces of the arrays that hold them,
plugins/request_plugins_test.go:1327
Function
TestRequestRedactPlugin
(t *testing.T)
plugins/request_plugins_test.go:142
Function
TestRequestRedactReply
(t *testing.T)
plugins/request_plugins_test.go:760
Function
TestResendDeliversThroughSelectedProvider
(t *testing.T)
controller/email_delivery_test.go:45
Function
TestResendFailuresDoNotRetryFallbackOrExposeSensitiveContent
(t *testing.T)
controller/email_delivery_test.go:73
Function
TestResendRejectsIncompleteOrInvalidConfigurationBeforeSending
(t *testing.T)
controller/email_delivery_test.go:89
Function
TestResendRejectsMalformedSuccessAndSanitizesTransportErrors
(t *testing.T)
controller/email_delivery_test.go:114
Function
TestResendSettingsChangesKeepActiveDeliveryWorking
(t *testing.T)
controller/email_delivery_test.go:194
Function
TestReserveFallsBackToDatabaseWhenRedisIsUnavailable
(t *testing.T)
model/quota_reserve_test.go:173
Function
TestReservedNamespaceChecksUseSegmentBoundaries
(t *testing.T)
pkg/jsplugin/routing_test.go:1069
Function
TestReservedRouteNamespacesCoverConsolePages
Every console page is a reserved namespace, so a plugin route cannot answer a reload or a direct visit of the page.
pkg/jsplugin/routing_test.go:1242
Function
TestResetProxyClientCacheClosesDefaultIdlePool
(t *testing.T)
service/http_client_transport_test.go:500
Function
TestResetProxyClientCacheConcurrentWithGetHttpClient
(t *testing.T)
service/http_client_transport_test.go:518
Function
TestResetProxyClientCacheKeepsDefaultPointerAndRecreatesVariants
(t *testing.T)
service/http_client_transport_test.go:467
Function
TestResetStatusCode
(t *testing.T)
service/error_test.go:18
Function
TestResetUserPasswordByEmailRequiresSingleActiveMatch
(t *testing.T)
model/user_update_test.go:365
Function
TestResolveChannelTestUserIDUsesRequestUser
(t *testing.T)
controller/channel_test_internal_test.go:318
Function
TestResolveIncomingBillingExprRequestInput
(t *testing.T)
relay/helper/billing_expr_request_test.go:20
Function
TestResolveRouteActionPrefersResolvedAction
(t *testing.T)
pkg/jsplugin/routing_test.go:1194
Function
TestResolvedPinPriorityAndMerge
(t *testing.T)
dto/channel_constraints_test.go:10
Function
TestResolvedTaskPluginIDsEnforcesPublicQueryContract
(t *testing.T)
middleware/task_plugin_test.go:1520
Function
TestRespondPluginProtocolSubmissionErrorKeepsGenericNonValidation400
(t *testing.T)
controller/plugin_protocol_test.go:1419
Function
TestRespondPluginProtocolSubmissionErrorPassesValidationMessage
(t *testing.T)
controller/plugin_protocol_test.go:1393
Function
TestRespondTaskPluginErrorNeverExposesInternalDetails
(t *testing.T)
middleware/task_plugin_test.go:1443
Function
TestRespondTaskSubmissionErrorWithoutCause
Local task rejections carry a message but no cause; the response and the decision record must still be produced.
controller/relay_task_plugin_test.go:662
Function
TestResponseConverterFacades
(t *testing.T)
service/convert_test.go:13
Function
TestResponseModelComparisonAndLog
(t *testing.T)
relay/response_model_test.go:26
Function
TestResponseModelDoesNotRecordSynthesizedModel
(t *testing.T)
relay/response_model_test.go:253
Function
TestResponseModelEmptyExpectedNamesDoNotMatchEveryPrefix
(t *testing.T)
relay/response_model_test.go:119
Function
TestResponseModelExpectedProviderPath
(t *testing.T)
relay/response_model_test.go:135
Function
TestResponseModelHandlersCaptureBeforeConversion
(t *testing.T)
relay/response_model_test.go:174
Function
TestResponseModelLogOmitsUnchangedModel
(t *testing.T)
relay/response_model_test.go:84
Function
TestResponseModelRetryResetsObservation
(t *testing.T)
relay/response_model_test.go:161
Function
TestResponseModelSharedResponsesAccumulator
(t *testing.T)
relay/response_model_test.go:240
Function
TestResponseOpenAI2ClaudePreservesReasoningBeforeText
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:88
Function
TestResponseOpenAI2ClaudeToolUseInputIsObject
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:13
Function
TestResponseOpenAI2ClaudeToolUseInputIsObject
(t *testing.T)
relay/channel/claude/relay_claude_test.go:68
Function
TestResponseOpenAI2ClaudeUsageCarriesOpenAIBillingUsage
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go:61
Function
TestResponseOpenAI2GeminiMapsTextToolFinishReasonAndUsage
(t *testing.T)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp_test.go:12
Function
TestResponsePhaseNeverRejectsEvenUnderStrictPolicy
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:52
Function
TestResponseUsageMatrixChatAndResponsesDetails
(t *testing.T)
relaykit/relayconvert/response_registry_test.go:563
Function
TestResponsesBufferedAccumulatorDoesNotDuplicatePendingArgsWithOutputIndexAndItemID
(t *testing.T)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:458
Function
TestResponsesBufferedAccumulatorPreservesInterleavedReasoningAndTextItems
(t *testing.T)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:494
Function
TestResponsesBufferedAccumulatorSupplementsEmptyTerminalOutput
(t *testing.T)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:424
Function
TestResponsesCompactChannelSupport
(t *testing.T)
controller/channel_test_internal_test.go:127
Function
TestResponsesCompactionResponseCreatedAtFloat
(t *testing.T)
relaykit/dto/values_test.go:43
Function
TestResponsesCustomToolNameConflictIsDropped
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:244
Function
TestResponsesCustomToolReachesEachTargetAsStringInputFunction
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:175
Function
TestResponsesFinishReasonFromIncompleteStatus
(t *testing.T)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:138
Function
TestResponsesHTTPHealthCountsFinalResult
(t *testing.T)
controller/responses_websocket_test.go:998
Function
TestResponsesInterruptedStreamHealth
(t *testing.T)
controller/responses_websocket_test.go:427
Function
TestResponsesReasoningReplay
Synthetic shapes reproduced against DeepSeek's native Responses endpoint on 2026-10-28; see also https://github.com/yetone/magpie/issues/1822. An empt
relay/channel/deepseek/adaptor_test.go:275
← previous
next →
13,401–13,500 of 15,409, ranked by callers