MCPcopy Create free account

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

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

FunctionTestEventStreamReaderRejectsBadFraming
(t *testing.T)
relay/channel/providerplugin/eventstream_test.go:59
FunctionTestExecuteTaskSubmissionCallerCancellationDuringSubmitRefundsBeforeDurableBarrier
(t *testing.T)
controller/relay_task_plugin_test.go:387
FunctionTestExecuteTaskSubmissionDisconnectAfterDurableInsertDoesNotRefund
(t *testing.T)
controller/relay_task_plugin_test.go:428
FunctionTestExecuteTaskSubmissionDisconnectBeforeUpstreamAcceptanceSkipsSubmitAndRefunds
(t *testing.T)
controller/relay_task_plugin_test.go:362
FunctionTestExecuteTaskSubmissionHonorsRouteRetainResult
A submit route declaring retainResult: false persists the task row for billing but never writes the upstream snapshot for an immediate terminal result
controller/relay_task_plugin_test.go:273
FunctionTestExecuteTaskSubmissionPersistsPinnedPluginProvenance
(t *testing.T)
controller/relay_task_plugin_test.go:214
FunctionTestExecuteTaskSubmissionRefundsCancellationBeforeDurableBarrier
(t *testing.T)
controller/relay_task_plugin_test.go:337
FunctionTestExecuteTaskSubmissionRefundsWhenFinalReserveFails
(t *testing.T)
controller/relay_task_plugin_test.go:677
FunctionTestExecuteTaskSubmissionRefundsWhenInsertFails
(t *testing.T)
controller/relay_task_plugin_test.go:166
FunctionTestExecuteTaskSubmissionSettlementFailureStaysDurableAndWritesNothing
(t *testing.T)
controller/relay_task_plugin_test.go:189
FunctionTestExemptAtNameIsOpaqueForBillingIdentity
(t *testing.T)
setting/reasoning/suffix_test.go:123
FunctionTestExpireStaleSystemTaskLockFailsOldRunAndAllowsNewRun
(t *testing.T)
model/system_task_test.go:302
FunctionTestExpireSubscriptionOrder_RejectsMismatchedPaymentProvider
(t *testing.T)
model/payment_method_guard_test.go:162
FunctionTestExpiredSystemTaskLockFailsOldRunAndClaimsLegacyPendingRun
(t *testing.T)
model/system_task_test.go:274
FunctionTestExpiringCredentialIsRefreshedBeforeTheRequest
(t *testing.T)
router/provider_plugin_relay_test.go:542
FunctionTestExpiringTaskCredentialIsRefreshedFirst
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:434
FunctionTestExprHashString_Deterministic
--------------------------------------------------------------------------- Hash ---------------------------------------------------------------------
pkg/billingexpr/billingexpr_test.go:556
FunctionTestExternalAuthAssertionCanOnlyBeClaimedOnce
(t *testing.T)
model/auth_flow_test.go:73
FunctionTestExternalIdentityClaimEnforcesSingleOwnerAtomically
(t *testing.T)
model/external_identity_claim_test.go:11
FunctionTestExtractChannelAffinityValue_JSONFile
(t *testing.T)
service/channel_affinity_template_test.go:199
FunctionTestExtractChannelAffinityValue_RequestHeader
(t *testing.T)
service/channel_affinity_template_test.go:185
FunctionTestFailedAdvancedCustomDetectionDoesNotStageFullRemoval
(t *testing.T)
controller/channel_upstream_update_test.go:333
FunctionTestFailedRefreshBeforeTheRequest
(t *testing.T)
router/provider_plugin_relay_test.go:557
FunctionTestFetchAdvancedCustomModelsAppliesHeaderOverrideAfterRouteAuth
(t *testing.T)
controller/channel_upstream_update_test.go:74
FunctionTestFetchAdvancedCustomModelsRedactsQueryKeyFromTransportErrors
(t *testing.T)
controller/channel_upstream_update_test.go:148
FunctionTestFetchAdvancedCustomModelsRejectsNonOKResponse
(t *testing.T)
controller/channel_upstream_update_test.go:135
FunctionTestFetchAdvancedCustomModelsUsesEnabledSavedMultiKey
(t *testing.T)
controller/channel_upstream_update_test.go:112
FunctionTestFetchBodyRules
(t *testing.T)
pkg/jsplugin/provider_test.go:894
FunctionTestFetchInRequestProcessingHooks
ingress, egress and report reach the instance's own service with GET, HEAD and POST; request and outbound have no network. report gets ctx with stage
pkg/jsplugin/provider_test.go:765
FunctionTestFetchModelListPagesAndExchangesAgainOn401
A model list fetch follows the plugin's pages, and a 401 exchanges the key again once and sends the rejected page again.
relay/channel/providerplugin/management_test.go:49
FunctionTestFetchModelListStopsAtTheFollowUpLimit
A plugin that keeps chaining fails the fetch after MaxFollowUps requests.
relay/channel/providerplugin/management_test.go:98
FunctionTestFetchModelsAdvancedCustomCreatePreview
(t *testing.T)
controller/channel_upstream_update_test.go:200
FunctionTestFetchModelsAdvancedCustomEditPreviewUsesSavedKeyAndExplicitClears
(t *testing.T)
controller/channel_upstream_update_test.go:245
FunctionTestFetchModelsOfAProviderChannel
(t *testing.T)
controller/provider_plugin_test.go:418
FunctionTestFetchModelsUsesSharedChannelFetchBehavior
(t *testing.T)
controller/channel_upstream_update_test.go:364
FunctionTestFetchNewAPIModelsUsesOpenAIContract
(t *testing.T)
controller/channel_upstream_update_test.go:398
FunctionTestFetchOrdinaryOpenAIModelsKeepsExistingEmptyDataBehavior
(t *testing.T)
controller/channel_upstream_update_test.go:183
FunctionTestFetchPostInCredentialHooks
(t *testing.T)
pkg/jsplugin/provider_test.go:827
FunctionTestFetchSendsAttachments
utils.fetch sends the data of each ref its body names, streamed from the request, and the URL of a listed file as it is; the record marks both sent.
relay/requestplugin/attachments_test.go:321
FunctionTestFileReferenceRoundTripAddressesRepeatedFieldFiles
(t *testing.T)
pkg/jsplugin/routing_test.go:141
FunctionTestFilterCandidateIDs
(t *testing.T)
model/channel_constraint_test.go:15
FunctionTestFinalizeResponsesToChatStreamFlushesPendingDeltaOnlyArguments
(t *testing.T)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:400
FunctionTestFindEarliestPendingSystemTasks
(t *testing.T)
model/system_task_test.go:333
FunctionTestFinishSystemTaskRetainsExecutor
(t *testing.T)
model/system_task_test.go:444
FunctionTestFixedPriceBillingDatabaseMatrix
The configured DSNs must point at isolated test databases. Each dialect runs the real reservation, settlement and log paths with the same billing case
service/text_quota_test.go:34
FunctionTestFixedPriceBranches
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:14
FunctionTestFixedPricePreConsumeAndRealtimeRejection
(t *testing.T)
relay/helper/price_test.go:74
FunctionTestFixedPriceQuotaBoundariesAndUnsupportedTaskSnapshots
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:64
FunctionTestFixedPriceRejectsInvalidLeavesIncludingUnselectedBranches
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:44
FunctionTestForcedHTTP1AgainstHTTP2Server
(t *testing.T)
service/http_client_transport_test.go:190
FunctionTestForcedHTTP1ConcurrentDistinctConnections
(t *testing.T)
service/http_client_transport_test.go:218
FunctionTestForeignCredentialNeverLeavesTheGateway
(t *testing.T)
router/provider_plugin_relay_test.go:644
FunctionTestForeignOrMisplacedCredentialsNeverLeave
(t *testing.T)
relay/channel/task/jsplugin/credential_test.go:379
FunctionTestFormBodyIngress
(t *testing.T)
relay/requestplugin/requestplugin_test.go:1704
FunctionTestFormFileAttachments
A form's files are attachments after the body's inline media: listed by field name, read, and never rewritten.
relay/requestplugin/attachments_test.go:296
FunctionTestFormatClaudeResponseInfo_ContentBlockDelta
(t *testing.T)
relay/channel/claude/relay_claude_test.go:259
FunctionTestFormatClaudeResponseInfo_MessageDelta_FullUsage
(t *testing.T)
relay/channel/claude/relay_claude_test.go:153
FunctionTestFormatClaudeResponseInfo_MessageDelta_OnlyOutputTokens
(t *testing.T)
relay/channel/claude/relay_claude_test.go:195
FunctionTestFormatClaudeResponseInfo_MessageStart
(t *testing.T)
relay/channel/claude/relay_claude_test.go:114
FunctionTestFormatClaudeResponseInfo_NilClaudeInfo
(t *testing.T)
relay/channel/claude/relay_claude_test.go:251
FunctionTestFormatMatchingModelNameDoesNotStripBase
(t *testing.T)
setting/ratio_setting/matching_test.go:10
FunctionTestFormatUserLogsStripsQuotaSaturation
TestFormatUserLogsStripsQuotaSaturation verifies the admin-only quota saturation marker (nested under other.admin_info) is removed for non-admin log v
model/log_format_test.go:15
FunctionTestFormatWaffoPancakeAmount_UsesDisplayPriceString
(t *testing.T)
controller/topup_waffo_pancake_test.go:13
FunctionTestFourShardHTTP2ReusesExactlyFourConnections
(t *testing.T)
service/http_client_transport_test.go:157
FunctionTestFromClaudeKeepsOutOfRangeBudgetsForTheRenderer
(t *testing.T)
relaykit/relayconvert/reasoning/intent_test.go:168
FunctionTestFromOpenAIChatResolvesFieldConflictsWithDiagnostics
(t *testing.T)
relaykit/relayconvert/reasoning/intent_test.go:135
FunctionTestFrontendSimulationContract
Shared fixtures protect the frontend simulator against drift from the real engine.
pkg/billingexpr/billingexpr_test.go:1157
FunctionTestGLM_Tier1
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:162
FunctionTestGLM_Tier2
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:176
FunctionTestGLM_Tier3
(t *testing.T)
pkg/billingexpr/billingexpr_test.go:190
FunctionTestGPT6AstraBuiltinBilling
(t *testing.T)
setting/billing_setting/builtin_billing_test.go:21
FunctionTestGapsAWSEventStream
(t *testing.T)
router/provider_plugin_gaps_test.go:587
FunctionTestGapsBalanceRunDisablesOnlyWhatIsUsedUp
(t *testing.T)
controller/channel_plugin_gaps_test.go:246
FunctionTestGapsChainedRequests
(t *testing.T)
router/provider_plugin_gaps_test.go:89
FunctionTestGapsChannelConfigAndKeyCheckOnSave
(t *testing.T)
controller/channel_plugin_gaps_test.go:87
FunctionTestGapsCheckPluginKeys
(t *testing.T)
service/provider_plugin_token_test.go:205
FunctionTestGapsConfigAddressesAndURLs
(t *testing.T)
router/provider_plugin_gaps_test.go:320
FunctionTestGapsFetchModelsPreviewOfAPluginChannel
(t *testing.T)
controller/channel_plugin_gaps_test.go:382
FunctionTestGapsKeyExchange
(t *testing.T)
router/provider_plugin_gaps_test.go:419
FunctionTestGapsPluginKeyTokenCache
(t *testing.T)
service/provider_plugin_token_test.go:87
FunctionTestGapsProviderTestEndpoint
(t *testing.T)
controller/channel_plugin_gaps_test.go:428
FunctionTestGapsToolCounts
The web_search calls a converter counts are billed at the tool price, once per call, as the built-in vendors' tool usage is.
router/provider_plugin_gaps_test.go:509
FunctionTestGapsUpdateAllBalancesRunsAsASystemTask
(t *testing.T)
controller/channel_plugin_gaps_test.go:306
FunctionTestGapsUpdateChannelBalanceOfAPluginChannel
(t *testing.T)
controller/channel_plugin_gaps_test.go:190
FunctionTestGapsUploadThenRequest
A first request that uploads the client's text, then the main request that names the upload.
router/provider_plugin_gaps_test.go:140
FunctionTestGapsUpstreamWebSocket
(t *testing.T)
router/provider_plugin_gaps_test.go:249
FunctionTestGeminiChatGenerationConfigPreservesExplicitZeroValuesCamelCase
(t *testing.T)
relaykit/dto/gemini_generation_config_test.go:11
FunctionTestGeminiChatGenerationConfigPreservesExplicitZeroValuesSnakeCase
(t *testing.T)
relaykit/dto/gemini_generation_config_test.go:51
FunctionTestGeminiChatHandlerCompletionTokensExcludeToolUsePromptTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:146
FunctionTestGeminiChatHandlerMissingUsageMetadataBuildsEstimatedBillingUsage
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:462
FunctionTestGeminiChatHandlerPromptOnlyUsageMetadataEstimatesCompletionTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:569
FunctionTestGeminiChatHandlerUsesEstimatedPromptTokensWhenUsagePromptMissing
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:304
FunctionTestGeminiChatRequest_IsStream
(t *testing.T)
relaykit/dto/gemini_isstream_test.go:10
FunctionTestGeminiChatResponseMarshalKeepsUsageMetadataField
(t *testing.T)
relaykit/dto/gemini_response_test.go:30
FunctionTestGeminiChatResponseUsageMetadataPresence
(t *testing.T)
relaykit/dto/gemini_response_test.go:11
FunctionTestGeminiChatStreamHandlerClaudeFirstFrameUsesUpstreamUsage
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:62
FunctionTestGeminiHandlersCountGroundingQueries
Google Search grounding records the unique trimmed non-empty queries (webSearchQueries and imageSearchQueries of every candidate, across every stream
relay/channel/gemini/relay_gemini_usage_test.go:661
FunctionTestGeminiModalityKeysSettleConsistentlyAndDuplicateEntriesSum
(t *testing.T)
relaykit/dto/usage_merge_test.go:56
FunctionTestGeminiRelayHandsLongRunningPredictionToPluginRoute
(t *testing.T)
router/relay_router_test.go:95
FunctionTestGeminiResponsesHandlerClosesBodyOnReadError
(t *testing.T)
relay/channel/gemini/relay_responses_test.go:70
← previousnext →12,401–12,500 of 15,409, ranked by callers