MCPcopy Create free account

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

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

FunctionTestGeminiResponsesHandlerReturnsOpenAIResponsesJSON
(t *testing.T)
relay/channel/gemini/relay_responses_test.go:23
FunctionTestGeminiResponsesStreamHandlerReturnsOpenAIResponsesSSE
(t *testing.T)
relay/channel/gemini/relay_responses_test.go:85
FunctionTestGeminiSafetySettingsReadNormalization
(t *testing.T)
setting/model_setting/gemini_test.go:10
FunctionTestGeminiStreamHandlerCompletionTokensExcludeToolUsePromptTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:197
FunctionTestGeminiStreamHandlerEmptyUsageMetadataBuildsEstimatedBillingUsage
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:618
FunctionTestGeminiStreamHandlerPromptOnlyUsageMetadataEstimatesCompletionTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:497
FunctionTestGeminiStreamHandlerUsesEstimatedPromptTokensWhenUsagePromptMissing
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:355
FunctionTestGeminiTextGenerationHandlerPromptTokensIncludeToolUsePromptTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:254
FunctionTestGeminiTextGenerationHandlerUsesEstimatedPromptTokensWhenUsagePromptMissing
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:412
FunctionTestGeminiThinkingControlsConvertBestEffort
(t *testing.T)
relay/convert_request_error_test.go:258
FunctionTestGeminiThinkingLevelCaseInsensitiveAcrossPaths
(t *testing.T)
relaykit/relayconvert/request_registry_test.go:447
FunctionTestGeminiToOpenAIChatPreservesTextAlongsideToolCalls
(t *testing.T)
relaykit/relayconvert/request_registry_test.go:1114
FunctionTestGeminiToOpenAIStatefulStreamTerminal
(t *testing.T)
relaykit/relayconvert/terminal_stream_test.go:13
FunctionTestGenRelayInfoCapturesRequestReasoningEffort
(t *testing.T)
relay/common/relay_info_test.go:107
FunctionTestGenRelayInfoKeepsOriginAndLeavesBillingUnset
(t *testing.T)
relay/common/relay_info_test.go:199
FunctionTestGeneralOpenAIRequestDropsThinkingBudgetForNonQwenModel
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:87
FunctionTestGeneralOpenAIRequestGetSystemRoleName
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:186
FunctionTestGeneralOpenAIRequestPreserveExplicitZeroValues
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:13
FunctionTestGeneralOpenAIRequestPreserveMessageLevelTools
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:252
FunctionTestGeneralOpenAIRequestPreserveQwQThinkingBudget
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:73
FunctionTestGeneralOpenAIRequestPreserveQwenThinkingBudget
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:55
FunctionTestGenerateOAuthCodeBindsFlowToAuthenticatedSession
(t *testing.T)
controller/auth_flow_test.go:705
FunctionTestGenerateOAuthCodeCarriesAffiliateInLoginFlow
(t *testing.T)
controller/auth_flow_test.go:676
FunctionTestGenericChannelTypesDoNotCreateLegacyIdentityConflicts
(t *testing.T)
pkg/jsplugin/routing_test.go:782
FunctionTestGetAccessTokenDoesNotCacheFailures
(t *testing.T)
relay/channel/vertex/service_account_test.go:125
FunctionTestGetAccessTokenReusesTokenUntilNearExpiry
(t *testing.T)
relay/channel/vertex/service_account_test.go:37
FunctionTestGetAccessTokenSeparatesKeySlotsAndReplacedKeys
(t *testing.T)
relay/channel/vertex/service_account_test.go:66
FunctionTestGetAccessTokenSharesOneExchangeAcrossConcurrentRequests
(t *testing.T)
relay/channel/vertex/service_account_test.go:94
FunctionTestGetAllFlowQuotaDatesUsesAdminDimensions
(t *testing.T)
controller/usedata_flow_test.go:64
FunctionTestGetAllFlowQuotaDatesUsesRootDimensions
(t *testing.T)
controller/usedata_flow_test.go:83
FunctionTestGetAllTokensMasksKeyInResponse
(t *testing.T)
controller/token_test.go:442
FunctionTestGetAllUsersSortsBeforePagination
(t *testing.T)
model/user_pagination_test.go:38
FunctionTestGetAndValidOpenAIImageRequestMultipartStream
TestGetAndValidOpenAIImageRequestMultipartStream verifies multipart image edit parsing: the stream field is parsed and validated, and the request body
relay/helper/openai_image_request_test.go:61
FunctionTestGetAndValidOpenAIImageRequestNBounds
TestGetAndValidOpenAIImageRequestNBounds guards the billing invariant that the image generation count can never reach quota calculation with a value l
relay/helper/openai_image_request_test.go:163
FunctionTestGetAudioDurationCaseInsensitiveExt
(t *testing.T)
common/audio_case_test.go:35
FunctionTestGetAudioDurationUppercaseNotUnsupported
(t *testing.T)
common/audio_case_test.go:49
FunctionTestGetChannelBaseURLIsBoundsSafe
(t *testing.T)
constant/channel_test.go:9
FunctionTestGetChannelDefaultBaseURLsUsesBuiltInDefaults
(t *testing.T)
controller/channel_test_internal_test.go:26
FunctionTestGetDeepSeekBalanceUSD
(t *testing.T)
controller/channel_billing_test.go:16
FunctionTestGetEffectiveHeaderOverrideUsesRuntimeOverrideAsFinalResult
(t *testing.T)
relay/common/override_test.go:2333
FunctionTestGetFlowQuotaDataUsesQuotaDataRoleSpecificDimensions
(t *testing.T)
model/usedata_flow_test.go:24
FunctionTestGetLatestSystemTask
(t *testing.T)
model/system_task_test.go:366
FunctionTestGetLatestSystemTasks
(t *testing.T)
model/system_task_test.go:391
FunctionTestGetModelListGroupsUsesExplicitTokenGroup
(t *testing.T)
controller/model_owned_by_test.go:76
FunctionTestGetModelListGroupsUsesFilteredTokenAutoGroupsSnapshot
(t *testing.T)
controller/model_owned_by_test.go:90
FunctionTestGetModelListGroupsUsesUserGroupWhenTokenGroupIsEmpty
(t *testing.T)
controller/model_owned_by_test.go:63
FunctionTestGetModelRequestAssignsDeepSeekToolRoutingNames
v1/tools/search and /v1/tools/fetch always route and bill by the DeepSeek routing names. A model named in the body is ignored: a chat model there woul
middleware/distributor_test.go:250
FunctionTestGetMonitorSettingNormalizesChannelTestConcurrency
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:59
FunctionTestGetMonitorSettingPreservesAutoBanOnlyMode
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:45
FunctionTestGetMonitorSetting_ChannelTestEnabledEnvCanEnableDisabledConfig
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:28
FunctionTestGetMonitorSetting_ChannelTestEnabledEnvOverridesEnabledConfig
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:10
FunctionTestGetOpenAIVideoRouteHandsNativeXAITaskToPluginQuery
(t *testing.T)
router/video_router_test.go:155
FunctionTestGetOpenAIVideoRouteRendersJimengTask
(t *testing.T)
router/video_router_test.go:18
FunctionTestGetPreferredChannelByAffinity_RequestHeaderKeySource
(t *testing.T)
service/channel_affinity_template_test.go:218
FunctionTestGetPreferredModelOwnerChannelTypes
(t *testing.T)
model/model_owner_test.go:47
FunctionTestGetRequestAutoGroupsDoesNotFallBackAfterPermissionChange
(t *testing.T)
service/group_auto_groups_test.go:63
FunctionTestGetRequestAutoGroupsFiltersBeforeApplyingCurrentLimit
(t *testing.T)
service/group_auto_groups_test.go:50
FunctionTestGetRequestAutoGroupsInheritedListIsNotLimited
(t *testing.T)
service/group_auto_groups_test.go:41
FunctionTestGetRequestURLAlphaSearch
(t *testing.T)
relay/channel/sub2api/adaptor_test.go:15
FunctionTestGetRequestURLAlphaSearch
(t *testing.T)
relay/channel/codex/adaptor_test.go:16
FunctionTestGetRequestURLForImageGeneration
(t *testing.T)
relay/channel/minimax/adaptor_test.go:18
FunctionTestGetRequestURLWithAPIKey
(t *testing.T)
relay/channel/vertex/adaptor_api_key_url_test.go:12
FunctionTestGetSSRFProtectedHTTPClientFallsBackToDefaultClientWhenProtectionDisabled
(t *testing.T)
service/protected_fetch_client_test.go:197
FunctionTestGetStatusAdvertisesDefaultDashboard
(t *testing.T)
controller/theme_compat_test.go:30
FunctionTestGetStatusDoesNotExposePasskeyOrigins
(t *testing.T)
controller/passkey_test.go:51
FunctionTestGetStatusReturnsEffectiveOIDCDisplayName
(t *testing.T)
controller/misc_oidc_test.go:15
FunctionTestGetTaskAdaptorForRequestPinsLegacyMappedPlugin
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:81
FunctionTestGetTaskAdaptorForRequestUsesExactPinnedPlugin
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:61
FunctionTestGetTaskAdaptorMapsMigratedPlatformsToFactoryPlugins
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:17
FunctionTestGetTaskAdaptorReturnsNilForUnknownPlatform
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:57
FunctionTestGetTaskAdaptorUsesPlatformAsThirdPartyPluginKey
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:38
FunctionTestGetTaskArtifactsReturnsEmptyForLegacyTask
(t *testing.T)
controller/task_generic_test.go:94
FunctionTestGetTaskDoesNotProjectArtifacts
(t *testing.T)
controller/task_generic_test.go:67
FunctionTestGetTaskForProtocolObservationScopesOwnerAndPlatform
(t *testing.T)
model/task_cas_test.go:106
FunctionTestGetTaskPlatformPriority
(t *testing.T)
relay/task_platform_test.go:10
FunctionTestGetTaskPluginMarketplaceSourcesDefaultWhenUnset
(t *testing.T)
controller/task_plugin_test.go:1818
FunctionTestGetTaskPluginOptionsAdminForbiddenRootAllowed
(t *testing.T)
router/task_plugin_options_router_test.go:20
FunctionTestGetTaskPluginOptionsIncludesDescriptionUsageSchemaIconBaseURLAndChannelTypes
(t *testing.T)
controller/task_plugin_test.go:519
FunctionTestGetTaskPluginOptionsReportChannelCapabilities
The bind options carry what the channel form needs from a provider plugin: its channel config schema, key hint, key check, balance hooks, relay paths
controller/task_plugin_test.go:585
FunctionTestGetTokenAutoGroupsReturnsFullFilteredGlobalOrderAndLimit
(t *testing.T)
controller/token_auto_groups_test.go:218
FunctionTestGetTokenKeyRequiresOwnershipAndReturnsFullKey
(t *testing.T)
controller/token_test.go:558
FunctionTestGetTokenMasksKeyInResponse
(t *testing.T)
controller/token_test.go:497
FunctionTestGetTokenUsageFollowsTheUserQuotaSwitchAndIPWhitelist
(t *testing.T)
controller/token_test.go:644
FunctionTestGetUserFlowQuotaDatesRejectsInvalidTimeRange
(t *testing.T)
controller/usedata_flow_test.go:120
FunctionTestGetUserFlowQuotaDatesRestrictsToAuthenticatedUser
(t *testing.T)
controller/usedata_flow_test.go:102
FunctionTestGetUserModelsExpandsAutoGroupsInConfiguredOrder
(t *testing.T)
controller/model_list_test.go:218
FunctionTestGetUserModelsFiltersByRequestedGroup
(t *testing.T)
controller/model_list_test.go:184
FunctionTestGetWaffoPancakePayMoney
(t *testing.T)
controller/topup_waffo_pancake_test.go:31
FunctionTestGinRegistrationPanicReadmitsPluginBlockedByOffender
(t *testing.T)
router/plugin_router_test.go:732
FunctionTestGinRegistrationPanicRebuildsWithoutOffender
(t *testing.T)
router/plugin_router_test.go:699
FunctionTestGlobalWebRateLimitCountsFrontendFilesInStaticBucket
(t *testing.T)
middleware/rate_limit_test.go:230
FunctionTestGoldenRequestConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:290
FunctionTestGoldenResponseConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:319
FunctionTestGoldenStreamConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:337
FunctionTestGoogleResponsesProtocol
(t *testing.T)
plugins/google_responses_test.go:19
FunctionTestGoogleThroughNewAPIGateway
A New API channel reaches Veo through another gateway's /google routes. The gateway rebuilds the request this driver sent, names the operation after i
plugins/google_responses_test.go:50
FunctionTestGormLoggerEndToEndSanitizedOutput
保护契约:经 gorm 真实链路,错误日志同时满足 SQL 参数化、驱动错误脱敏、 调用点归因到业务代码;DEBUG=true 恢复参数值与错误原文。
model/gorm_logger_test.go:85
FunctionTestHTTPClientCacheConcurrentGetOrCreate
(t *testing.T)
service/http_client_transport_test.go:380
FunctionTestHTTPClientCachePolicyAndCompatibility
(t *testing.T)
service/http_client_transport_test.go:278
FunctionTestHTTPResponsesRequestOmitsWebSocketMetadata
(t *testing.T)
relay/responses_websocket_test.go:527
← previousnext →12,501–12,600 of 15,409, ranked by callers