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
TestGeminiResponsesHandlerReturnsOpenAIResponsesJSON
(t *testing.T)
relay/channel/gemini/relay_responses_test.go:23
Function
TestGeminiResponsesStreamHandlerReturnsOpenAIResponsesSSE
(t *testing.T)
relay/channel/gemini/relay_responses_test.go:85
Function
TestGeminiSafetySettingsReadNormalization
(t *testing.T)
setting/model_setting/gemini_test.go:10
Function
TestGeminiStreamHandlerCompletionTokensExcludeToolUsePromptTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:197
Function
TestGeminiStreamHandlerEmptyUsageMetadataBuildsEstimatedBillingUsage
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:618
Function
TestGeminiStreamHandlerPromptOnlyUsageMetadataEstimatesCompletionTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:497
Function
TestGeminiStreamHandlerUsesEstimatedPromptTokensWhenUsagePromptMissing
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:355
Function
TestGeminiTextGenerationHandlerPromptTokensIncludeToolUsePromptTokens
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:254
Function
TestGeminiTextGenerationHandlerUsesEstimatedPromptTokensWhenUsagePromptMissing
(t *testing.T)
relay/channel/gemini/relay_gemini_usage_test.go:412
Function
TestGeminiThinkingControlsConvertBestEffort
(t *testing.T)
relay/convert_request_error_test.go:258
Function
TestGeminiThinkingLevelCaseInsensitiveAcrossPaths
(t *testing.T)
relaykit/relayconvert/request_registry_test.go:447
Function
TestGeminiToOpenAIChatPreservesTextAlongsideToolCalls
(t *testing.T)
relaykit/relayconvert/request_registry_test.go:1114
Function
TestGeminiToOpenAIStatefulStreamTerminal
(t *testing.T)
relaykit/relayconvert/terminal_stream_test.go:13
Function
TestGenRelayInfoCapturesRequestReasoningEffort
(t *testing.T)
relay/common/relay_info_test.go:107
Function
TestGenRelayInfoKeepsOriginAndLeavesBillingUnset
(t *testing.T)
relay/common/relay_info_test.go:199
Function
TestGeneralOpenAIRequestDropsThinkingBudgetForNonQwenModel
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:87
Function
TestGeneralOpenAIRequestGetSystemRoleName
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:186
Function
TestGeneralOpenAIRequestPreserveExplicitZeroValues
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:13
Function
TestGeneralOpenAIRequestPreserveMessageLevelTools
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:252
Function
TestGeneralOpenAIRequestPreserveQwQThinkingBudget
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:73
Function
TestGeneralOpenAIRequestPreserveQwenThinkingBudget
(t *testing.T)
relaykit/dto/openai_request_zero_value_test.go:55
Function
TestGenerateOAuthCodeBindsFlowToAuthenticatedSession
(t *testing.T)
controller/auth_flow_test.go:705
Function
TestGenerateOAuthCodeCarriesAffiliateInLoginFlow
(t *testing.T)
controller/auth_flow_test.go:676
Function
TestGenericChannelTypesDoNotCreateLegacyIdentityConflicts
(t *testing.T)
pkg/jsplugin/routing_test.go:782
Function
TestGetAccessTokenDoesNotCacheFailures
(t *testing.T)
relay/channel/vertex/service_account_test.go:125
Function
TestGetAccessTokenReusesTokenUntilNearExpiry
(t *testing.T)
relay/channel/vertex/service_account_test.go:37
Function
TestGetAccessTokenSeparatesKeySlotsAndReplacedKeys
(t *testing.T)
relay/channel/vertex/service_account_test.go:66
Function
TestGetAccessTokenSharesOneExchangeAcrossConcurrentRequests
(t *testing.T)
relay/channel/vertex/service_account_test.go:94
Function
TestGetAllFlowQuotaDatesUsesAdminDimensions
(t *testing.T)
controller/usedata_flow_test.go:64
Function
TestGetAllFlowQuotaDatesUsesRootDimensions
(t *testing.T)
controller/usedata_flow_test.go:83
Function
TestGetAllTokensMasksKeyInResponse
(t *testing.T)
controller/token_test.go:442
Function
TestGetAllUsersSortsBeforePagination
(t *testing.T)
model/user_pagination_test.go:38
Function
TestGetAndValidOpenAIImageRequestMultipartStream
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
Function
TestGetAndValidOpenAIImageRequestNBounds
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
Function
TestGetAudioDurationCaseInsensitiveExt
(t *testing.T)
common/audio_case_test.go:35
Function
TestGetAudioDurationUppercaseNotUnsupported
(t *testing.T)
common/audio_case_test.go:49
Function
TestGetChannelBaseURLIsBoundsSafe
(t *testing.T)
constant/channel_test.go:9
Function
TestGetChannelDefaultBaseURLsUsesBuiltInDefaults
(t *testing.T)
controller/channel_test_internal_test.go:26
Function
TestGetDeepSeekBalanceUSD
(t *testing.T)
controller/channel_billing_test.go:16
Function
TestGetEffectiveHeaderOverrideUsesRuntimeOverrideAsFinalResult
(t *testing.T)
relay/common/override_test.go:2333
Function
TestGetFlowQuotaDataUsesQuotaDataRoleSpecificDimensions
(t *testing.T)
model/usedata_flow_test.go:24
Function
TestGetLatestSystemTask
(t *testing.T)
model/system_task_test.go:366
Function
TestGetLatestSystemTasks
(t *testing.T)
model/system_task_test.go:391
Function
TestGetModelListGroupsUsesExplicitTokenGroup
(t *testing.T)
controller/model_owned_by_test.go:76
Function
TestGetModelListGroupsUsesFilteredTokenAutoGroupsSnapshot
(t *testing.T)
controller/model_owned_by_test.go:90
Function
TestGetModelListGroupsUsesUserGroupWhenTokenGroupIsEmpty
(t *testing.T)
controller/model_owned_by_test.go:63
Function
TestGetModelRequestAssignsDeepSeekToolRoutingNames
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
Function
TestGetMonitorSettingNormalizesChannelTestConcurrency
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:59
Function
TestGetMonitorSettingPreservesAutoBanOnlyMode
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:45
Function
TestGetMonitorSetting_ChannelTestEnabledEnvCanEnableDisabledConfig
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:28
Function
TestGetMonitorSetting_ChannelTestEnabledEnvOverridesEnabledConfig
(t *testing.T)
setting/operation_setting/monitor_setting_test.go:10
Function
TestGetOpenAIVideoRouteHandsNativeXAITaskToPluginQuery
(t *testing.T)
router/video_router_test.go:155
Function
TestGetOpenAIVideoRouteRendersJimengTask
(t *testing.T)
router/video_router_test.go:18
Function
TestGetPreferredChannelByAffinity_RequestHeaderKeySource
(t *testing.T)
service/channel_affinity_template_test.go:218
Function
TestGetPreferredModelOwnerChannelTypes
(t *testing.T)
model/model_owner_test.go:47
Function
TestGetRequestAutoGroupsDoesNotFallBackAfterPermissionChange
(t *testing.T)
service/group_auto_groups_test.go:63
Function
TestGetRequestAutoGroupsFiltersBeforeApplyingCurrentLimit
(t *testing.T)
service/group_auto_groups_test.go:50
Function
TestGetRequestAutoGroupsInheritedListIsNotLimited
(t *testing.T)
service/group_auto_groups_test.go:41
Function
TestGetRequestURLAlphaSearch
(t *testing.T)
relay/channel/sub2api/adaptor_test.go:15
Function
TestGetRequestURLAlphaSearch
(t *testing.T)
relay/channel/codex/adaptor_test.go:16
Function
TestGetRequestURLForImageGeneration
(t *testing.T)
relay/channel/minimax/adaptor_test.go:18
Function
TestGetRequestURLWithAPIKey
(t *testing.T)
relay/channel/vertex/adaptor_api_key_url_test.go:12
Function
TestGetSSRFProtectedHTTPClientFallsBackToDefaultClientWhenProtectionDisabled
(t *testing.T)
service/protected_fetch_client_test.go:197
Function
TestGetStatusAdvertisesDefaultDashboard
(t *testing.T)
controller/theme_compat_test.go:30
Function
TestGetStatusDoesNotExposePasskeyOrigins
(t *testing.T)
controller/passkey_test.go:51
Function
TestGetStatusReturnsEffectiveOIDCDisplayName
(t *testing.T)
controller/misc_oidc_test.go:15
Function
TestGetTaskAdaptorForRequestPinsLegacyMappedPlugin
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:81
Function
TestGetTaskAdaptorForRequestUsesExactPinnedPlugin
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:61
Function
TestGetTaskAdaptorMapsMigratedPlatformsToFactoryPlugins
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:17
Function
TestGetTaskAdaptorReturnsNilForUnknownPlatform
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:57
Function
TestGetTaskAdaptorUsesPlatformAsThirdPartyPluginKey
(t *testing.T)
relay/relay_adaptor_jsplugin_test.go:38
Function
TestGetTaskArtifactsReturnsEmptyForLegacyTask
(t *testing.T)
controller/task_generic_test.go:94
Function
TestGetTaskDoesNotProjectArtifacts
(t *testing.T)
controller/task_generic_test.go:67
Function
TestGetTaskForProtocolObservationScopesOwnerAndPlatform
(t *testing.T)
model/task_cas_test.go:106
Function
TestGetTaskPlatformPriority
(t *testing.T)
relay/task_platform_test.go:10
Function
TestGetTaskPluginMarketplaceSourcesDefaultWhenUnset
(t *testing.T)
controller/task_plugin_test.go:1818
Function
TestGetTaskPluginOptionsAdminForbiddenRootAllowed
(t *testing.T)
router/task_plugin_options_router_test.go:20
Function
TestGetTaskPluginOptionsIncludesDescriptionUsageSchemaIconBaseURLAndChannelTypes
(t *testing.T)
controller/task_plugin_test.go:519
Function
TestGetTaskPluginOptionsReportChannelCapabilities
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
Function
TestGetTokenAutoGroupsReturnsFullFilteredGlobalOrderAndLimit
(t *testing.T)
controller/token_auto_groups_test.go:218
Function
TestGetTokenKeyRequiresOwnershipAndReturnsFullKey
(t *testing.T)
controller/token_test.go:558
Function
TestGetTokenMasksKeyInResponse
(t *testing.T)
controller/token_test.go:497
Function
TestGetTokenUsageFollowsTheUserQuotaSwitchAndIPWhitelist
(t *testing.T)
controller/token_test.go:644
Function
TestGetUserFlowQuotaDatesRejectsInvalidTimeRange
(t *testing.T)
controller/usedata_flow_test.go:120
Function
TestGetUserFlowQuotaDatesRestrictsToAuthenticatedUser
(t *testing.T)
controller/usedata_flow_test.go:102
Function
TestGetUserModelsExpandsAutoGroupsInConfiguredOrder
(t *testing.T)
controller/model_list_test.go:218
Function
TestGetUserModelsFiltersByRequestedGroup
(t *testing.T)
controller/model_list_test.go:184
Function
TestGetWaffoPancakePayMoney
(t *testing.T)
controller/topup_waffo_pancake_test.go:31
Function
TestGinRegistrationPanicReadmitsPluginBlockedByOffender
(t *testing.T)
router/plugin_router_test.go:732
Function
TestGinRegistrationPanicRebuildsWithoutOffender
(t *testing.T)
router/plugin_router_test.go:699
Function
TestGlobalWebRateLimitCountsFrontendFilesInStaticBucket
(t *testing.T)
middleware/rate_limit_test.go:230
Function
TestGoldenRequestConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:290
Function
TestGoldenResponseConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:319
Function
TestGoldenStreamConversionMatrix
(t *testing.T)
relaykit/relayconvert/golden_test.go:337
Function
TestGoogleResponsesProtocol
(t *testing.T)
plugins/google_responses_test.go:19
Function
TestGoogleThroughNewAPIGateway
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
Function
TestGormLoggerEndToEndSanitizedOutput
保护契约:经 gorm 真实链路,错误日志同时满足 SQL 参数化、驱动错误脱敏、 调用点归因到业务代码;DEBUG=true 恢复参数值与错误原文。
model/gorm_logger_test.go:85
Function
TestHTTPClientCacheConcurrentGetOrCreate
(t *testing.T)
service/http_client_transport_test.go:380
Function
TestHTTPClientCachePolicyAndCompatibility
(t *testing.T)
service/http_client_transport_test.go:278
Function
TestHTTPResponsesRequestOmitsWebSocketMetadata
(t *testing.T)
relay/responses_websocket_test.go:527
← previous
next →
12,501–12,600 of 15,409, ranked by callers