MCPcopy Create free account

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

Functions10,602 in github.com/QuantumNous/new-api

↓ 2 callersFunctionRequestFunctionDeclarations
(raw []byte)
service/relayconvert/internal/oai_responses/req_helpers.go:127
↓ 2 callersFunctionRequestToolChoiceToChat
(raw json.RawMessage)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:388
↓ 2 callersFunctionRerankHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/common_handler/rerank.go:19
↓ 2 callersFunctionResetDiskCacheStats
ResetDiskCacheStats 重置命中统计信息(不重置当前使用量)
common/disk_cache_config.go:147
↓ 2 callersFunctionResetUserPasswordByEmail
(email string, password string)
model/user.go:904
↓ 2 callersFunctionResolveIncomingBillingExprRequestInput
(c *gin.Context, info *relaycommon.RelayInfo)
relay/helper/billing_expr_request.go:13
↓ 2 callersFunctionResponseClaude2OpenAI
(claudeResponse *dto.ClaudeResponse)
service/relayconvert/response_compat.go:39
↓ 2 callersFunctionResponseGeminiChat2OpenAI
(id string, created int64, response *dto.GeminiChatResponse)
service/relayconvert/response_compat.go:75
↓ 2 callersFunctionResponseOpenAI2Claude
(openAIResponse *dto.OpenAITextResponse, info *relaycommon.RelayInfo)
service/relayconvert/internal/oai_chat/to_claude_messages_resp.go:435
↓ 2 callersFunctionResponseOpenAI2Gemini
(openAIResponse *dto.OpenAITextResponse, info *relaycommon.RelayInfo)
service/relayconvert/response_compat.go:63
↓ 2 callersFunctionResponsesResponseToChatCompletionsResponse
(resp *dto.OpenAIResponsesResponse, id string)
service/relayconvert/response_compat.go:111
↓ 2 callersFunctionResponsesStatusFromChatFinishReason
(finishReason string)
service/relayconvert/internal/oai_chat/to_oai_responses_resp.go:100
↓ 2 callersFunctionRootAuth
()
middleware/auth.go:193
↓ 2 callersFunctionRunExprByHashWithRequest
(exprStr, hash string, params TokenParams, request RequestInput)
pkg/billingexpr/run.go:43
↓ 2 callersFunctionSearchRedemptions
(keyword string, status string, startIdx int, num int)
model/redemption.go:63
↓ 2 callersFunctionSensitiveWordContains
SensitiveWordContains 是否包含敏感词,返回是否包含敏感词和敏感词列表
service/sensitive.go:40
↓ 2 callersMethodSetIndex
(i int)
dto/openai_response.go:130
↓ 2 callersMethodSetOtherInfo
(otherInfo map[string]interface{})
model/channel.go:318
↓ 2 callersMethodSetProviderUserID
SetProviderUserID sets the provider user ID on the user model
oauth/provider.go:32
↓ 2 callersMethodSetText
(s string)
dto/claude.go:39
↓ 2 callersMethodSetTools
(tools []GeminiChatTool)
dto/gemini.go:147
↓ 2 callersMethodSetTransports
(list []protocol.AuthenticatorTransport)
model/passkey.go:59
↓ 2 callersFunctionSetUserPermissions
(userID int, permissions PermissionsMap)
service/authz/override.go:20
↓ 2 callersMethodSettle
Settle 根据差额调整资金来源(正数补扣,负数退还)
service/funding_source.go:20
↓ 2 callersFunctionSetupContextForToken
(c *gin.Context, token *model.Token, parts ...string)
middleware/auth.go:447
↓ 2 callersFunctionSetupLogger
()
logger/logger.go:42
↓ 2 callersFunctionShouldAttachThoughtSignature
()
service/relayconvert/internal/shared/gemini/request.go:54
↓ 2 callersFunctionShouldChatCompletionsUseResponsesGlobal
(channelID int, channelType int, model string)
service/openai_chat_responses_mode.go:12
↓ 2 callersFunctionShouldDisableByStatusCode
(code int)
setting/operation_setting/status_code_ranges.go:53
↓ 2 callersFunctionShouldDisableChannel
(err *types.NewAPIError)
service/channel.go:45
↓ 2 callersFunctionSizeToVeoResolution
SizeToVeoResolution converts a "WxH" size string to a Veo resolution label.
relay/channel/task/gemini/billing.go:87
↓ 2 callersMethodStart
(server *smtp.ServerInfo)
common/email_ntlm_auth.go:21
↓ 2 callersFunctionStopReasonClaudeToOpenAI
(reason string)
service/relayconvert/internal/claude_messages/to_oai_chat_resp.go:24
↓ 2 callersFunctionStreamResponseClaude2OpenAI
(claudeResponse *dto.ClaudeResponse)
service/relayconvert/response_compat.go:35
↓ 2 callersFunctionStreamResponseGeminiChat2OpenAI
(geminiResponse *dto.GeminiChatResponse)
service/relayconvert/response_compat.go:79
↓ 2 callersFunctionStreamResponseOpenAI2Claude
(openAIResponse *dto.ChatCompletionsStreamResponse, info *relaycommon.RelayInfo)
service/relayconvert/response_compat.go:27
↓ 2 callersFunctionStreamResponseOpenAI2Gemini
(openAIResponse *dto.ChatCompletionsStreamResponse, info *relaycommon.RelayInfo)
service/relayconvert/response_compat.go:67
↓ 2 callersFunctionSumUsedQuota
(logType int, startTimestamp int64, endTimestamp int64, modelName string, username string, tokenName string, c
model/log.go:618
↓ 2 callersFunctionSupportedLanguages
SupportedLanguages returns a list of supported language codes
i18n/i18n.go:218
↓ 2 callersMethodToBaseUser
()
model/user.go:58
↓ 2 callersMethodToMap
()
dto/openai_request.go:209
↓ 2 callersMethodToSetting
()
types/price_data.go:112
↓ 2 callersMethodToWebAuthnCredential
()
model/passkey.go:75
↓ 2 callersFunctionTopupGroupRatio2JSONString
()
common/topup-ratio.go:15
↓ 2 callersMethodTryToOpenAIError
()
dto/error.go:41
↓ 2 callersFunctionTryUserAuth
()
middleware/auth.go:170
↓ 2 callersFunctionUnregisterCustomProvider
UnregisterCustomProvider unregisters a custom provider by slug
oauth/registry.go:132
↓ 2 callersFunctionUpdateAbilityStatusByTag
(tag string, status bool)
model/ability.go:317
↓ 2 callersFunctionUpdateAudioCompletionRatioByJSONString
(jsonStr string)
setting/ratio_setting/model_ratio.go:690
↓ 2 callersFunctionUpdateAudioRatioByJSONString
(jsonStr string)
setting/ratio_setting/model_ratio.go:682
↓ 2 callersFunctionUpdateCreateCacheRatioByJSONString
UpdateCreateCacheRatioByJSONString updates the create cache ratio map from a JSON string
setting/ratio_setting/cache_ratio.go:154
↓ 2 callersFunctionUpdateImageRatioByJSONString
(jsonStr string)
setting/ratio_setting/model_ratio.go:666
↓ 2 callersFunctionUpdateModelPriceByJSONString
(jsonStr string)
setting/ratio_setting/model_ratio.go:355
↓ 2 callersMethodUpdateResponseTime
(responseTime int64)
model/channel.go:575
↓ 2 callersFunctionUpdateTopupGroupRatioByJSONString
(jsonStr string)
common/topup-ratio.go:25
↓ 2 callersFunctionUsageFromChatUsage
(src *dto.Usage)
service/relayconvert/internal/oai_chat/to_oai_responses_resp.go:111
↓ 2 callersFunctionUsageFromClaudeUsage
(usage *dto.Usage)
service/relayconvert/response_compat.go:47
↓ 2 callersFunctionUsageFromResponsesUsage
(src *dto.Usage)
service/relayconvert/internal/oai_responses/to_oai_chat_resp.go:131
↓ 2 callersMethodUsageText
()
service/relayconvert/response_registry.go:396
↓ 2 callersMethodValidateAndFill
ValidateAndFill check password & user status
model/user.go:766
↓ 2 callersFunctionValidateMultipartDirect
(c *gin.Context, info *RelayInfo)
relay/common/relay_utils.go:199
↓ 2 callersFunctionValidateRedirectURL
ValidateRedirectURL validates that a redirect URL is safe to use. It checks that: - The URL is properly formatted - The scheme is either http or https
common/url_validator.go:19
↓ 2 callersFunctionValidateRequestChatUnsupportedFields
(req *dto.OpenAIResponsesRequest)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:120
↓ 2 callersFunctionValidateTOTPCode
ValidateTOTPCode 验证TOTP验证码
common/totp.go:37
↓ 2 callersFunctionWithClaudeError
(claudeError ClaudeError, statusCode int, ops ...NewAPIErrorOptions)
types/error.go:349
↓ 2 callersFunctionactionHasRole
(action ActionDefinition, roleKey string)
service/authz/registry.go:69
↓ 2 callersFunctionaddTag
(tag: string)
web/default/src/components/tag-input.tsx:47
↓ 2 callersFunctionaddUsedChannel
(c *gin.Context, channelId int)
controller/relay.go:258
↓ 2 callersFunctionanalyzeError
(errorLogs)
electron/main.js:64
↓ 2 callersFunctionapiCategoryOf
* Refine the broad PROFILE_BY_NAME bucket into an API-shape category. The * `image` bucket from `PROFILE_BY_NAME` lumps still-image and video models
web/default/src/features/pricing/lib/mock-stats.ts:774
↓ 2 callersFunctionappendPricePart
(parts, condition, key, vars)
web/classic/src/helpers/render.jsx:1222
↓ 2 callersFunctionappendRequestPath
(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, other map[string]interface{})
service/log_info_generate.go:52
↓ 2 callersFunctionappendUsageBillingPathForLog
(other map[string]interface{}, isLocalCountTokens bool, usage *dto.Usage)
service/billing_usage.go:61
↓ 2 callersFunctionapplyAuthTemplate
(template string, apiKey string)
relay/channel/advancedcustom/adaptor.go:460
↓ 2 callersFunctionapplyChannelUpstreamModelUpdates
( channel *model.Channel, addModelsInput []string, ignoreModelsInput []string, removeModelsInput []string,
controller/channel_upstream_update.go:802
↓ 2 callersFunctionapplyClipboardConfig
(config)
web/classic/src/components/table/channels/modals/EditChannelModal.jsx:567
↓ 2 callersFunctionapplyEndpoints
( preset: (typeof OAUTH_PRESETS)[number], url: string )
web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx:91
↓ 2 callersFunctionapplyFaviconToDom
(url: string)
web/default/src/lib/dom-utils.ts:19
↓ 2 callersFunctionapplyRankingQuotaTimeRange
(query *gorm.DB, startTime int64, endTime int64)
model/usedata_rankings.go:58
↓ 2 callersFunctionapplyResolutionRemovalPlan
( resolutions: ResolutionsMap, plan: ResolutionRemovalPlan )
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:383
↓ 2 callersFunctionapplyResolutionSelections
( resolutions: ResolutionsMap, differences: Record<string, Partial<Record<RatioType, RatioDifferenceEntry>
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:331
↓ 2 callersFunctionapplySelectedModelChanges
(originModels []string, addModels []string, removeModels []string)
controller/channel_upstream_update.go:138
↓ 2 callersFunctionarrayBufferToBase64Url
( buffer?: ArrayBuffer | ArrayBufferLike | null )
web/default/src/lib/passkey.ts:71
↓ 2 callersFunctionasClaudeResponse
(response any)
service/relayconvert/response_registry.go:1027
↓ 2 callersFunctionasFloat64
(value any)
controller/ratio_sync.go:107
↓ 2 callersFunctionasGeminiChatResponse
(response any)
service/relayconvert/response_registry.go:1038
↓ 2 callersFunctionassertChannelRoutePermission
(t *testing.T, method string, path string, permission authz.Permission, handler any)
router/channel_router_test.go:40
↓ 2 callersFunctionassistantMessageWithTool
(content string, id string, name string, args string)
service/relayconvert/internal/oai_chat/to_oai_responses_req_test.go:49
↓ 2 callersFunctionattachEstimatedGeminiBillingUsage
(usage *dto.Usage)
relay/channel/gemini/relay-gemini.go:33
↓ 2 callersFunctionattachQuotaSaturationToOther
attachQuotaSaturationToOther nests a quota saturation marker under other.admin_info.quota_saturation. Nesting under admin_info makes it admin-only for
service/log_info_generate.go:24
↓ 2 callersFunctionauditContentEN
auditContentEN 按 action 模板渲染英文兜底文本;未登记的 action 退回 action 本身。
controller/audit.go:55
↓ 2 callersFunctionautoSizeColumn
( resizerElement: HTMLElement, table: TanstackTable<TData>, header: Header<TData, unknown> )
web/default/src/components/data-table/core/data-table-header.tsx:145
↓ 2 callersFunctionavg
(sum int64, count int64)
pkg/perf_metrics/metrics.go:359
↓ 2 callersFunctionavgTps
(value counters)
pkg/perf_metrics/metrics.go:373
↓ 2 callersFunctionbase64UrlToArrayBuffer
(value?: string | null)
web/default/src/lib/passkey.ts:35
↓ 2 callersFunctionbase64UrlToBuffer
(base64url)
web/classic/src/helpers/passkey.js:19
↓ 2 callersFunctionbatchCopyTokens
(copyType)
web/classic/src/hooks/tokens/useTokensData.jsx:417
↓ 2 callersFunctionbatchUpdateChannelStatus
( ids: number[], status: number )
web/default/src/features/channels/api.ts:160
↓ 2 callersFunctionbufferToBase64Url
(buffer)
web/classic/src/helpers/passkey.js:32
↓ 2 callersFunctionbuildApiParams
(config: { page: number pageSize: number searchParams: Record<string, unknown> columnFilters?: Array<{
web/default/src/features/usage-logs/lib/utils.ts:173
← previousnext →1,501–1,600 of 10,602, ranked by callers