Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 1 callers
Function
GetAllTasks
(startIdx int, num int, queryParams TaskQueryParams)
model/midjourney.go:66
↓ 1 callers
Function
GetAllTokens
(c *gin.Context)
controller/token.go:132
↓ 1 callers
Function
GetAllTopUps
GetAllTopUps 获取全平台的充值记录(管理员使用,不限制时间窗口)
model/topup.go:337
↓ 1 callers
Function
GetAllUnFinishTasks
()
model/midjourney.go:96
↓ 1 callers
Function
GetAllUserTask
(userId int, startIdx int, num int, queryParams TaskQueryParams)
model/midjourney.go:39
↓ 1 callers
Function
GetAllUserTokens
(userId int, startIdx int, num int)
model/token.go:110
↓ 1 callers
Function
GetAndValidAudioRequest
(c *gin.Context, relayMode int)
relay/helper/valid_request.go:63
↓ 1 callers
Function
GetAndValidateAlphaSearchRequest
(c *gin.Context)
relay/helper/valid_request.go:155
↓ 1 callers
Function
GetAndValidateDeepSeekToolsRequest
GetAndValidateDeepSeekToolsRequest keeps the raw body for forwarding. The upstream validates query/url itself, and no field changes the per-call price
relay/helper/valid_request.go:177
↓ 1 callers
Function
GetAndValidateEmbeddingRequest
(c *gin.Context, relayMode int)
relay/helper/valid_request.go:102
↓ 1 callers
Function
GetAndValidateGeminiBatchEmbeddingRequest
(c *gin.Context)
relay/helper/valid_request.go:428
↓ 1 callers
Function
GetAndValidateGeminiEmbeddingRequest
(c *gin.Context)
relay/helper/valid_request.go:419
↓ 1 callers
Function
GetAndValidateRerankRequest
(c *gin.Context)
relay/helper/valid_request.go:85
↓ 1 callers
Function
GetAndValidateResponsesCompactionRequest
(c *gin.Context)
relay/helper/valid_request.go:197
↓ 1 callers
Function
GetAnnouncements
()
setting/console_setting/validation.go:251
↓ 1 callers
Function
GetAnonymousRequestBodyLimitBytes
()
common/request_body_limit.go:7
↓ 1 callers
Function
GetApiInfo
()
setting/console_setting/validation.go:163
↓ 1 callers
Function
GetAudioCompletionRatioCopy
()
setting/ratio_setting/model_ratio.go:704
↓ 1 callers
Function
GetAudioRatioCopy
()
setting/ratio_setting/model_ratio.go:700
↓ 1 callers
Function
GetAuthIdentity
GetAuthIdentity returns a dashboard session identity. PAT-authenticated requests intentionally have no SessionID and cannot manage browser sessions.
middleware/auth.go:152
↓ 1 callers
Method
GetAvailableReplicas
GetAvailableReplicas retrieves available replicas per location for specified hardware
pkg/ionet/hardware.go:12
↓ 1 callers
Function
GetBindingCountByProviderId
GetBindingCountByProviderId returns the number of bindings for a provider
model/user_oauth_binding.go:142
↓ 1 callers
Function
GetBucketSeconds
()
setting/perf_metrics_setting/config.go:27
↓ 1 callers
Function
GetBuiltinBillingExprCopy
()
setting/billing_setting/tiered_billing.go:162
↓ 1 callers
Function
GetByMJIds
(userId int, mjIds []string)
model/midjourney.go:140
↓ 1 callers
Function
GetByOnlyTaskId
(taskId string)
model/task.go:440
↓ 1 callers
Function
GetCacheRatioCopy
()
setting/ratio_setting/cache_ratio.go:180
↓ 1 callers
Function
GetChannelAffinityCacheStats
()
service/channel_affinity.go:113
↓ 1 callers
Function
GetChannelAffinityStatsContext
(c *gin.Context)
service/channel_affinity.go:389
↓ 1 callers
Function
GetChannelDefaultBaseURLs
(c *gin.Context)
controller/channel.go:213
↓ 1 callers
Function
GetChannelKey
GetChannelKey 获取渠道密钥(需要通过安全验证中间件) 此函数依赖 SecureVerificationRequired 中间件,确保用户已通过安全验证
controller/channel.go:526
↓ 1 callers
Method
GetChannelName
()
relay/channel/sub2api/adaptor.go:15
↓ 1 callers
Method
GetChannelType
()
relay/common/relay_info.go:906
↓ 1 callers
Function
GetChannelsByIds
(ids []int)
model/channel.go:1277
↓ 1 callers
Function
GetChargedAmount
(count float64, user model.User)
controller/topup_stripe.go:405
↓ 1 callers
Function
GetClaudeAuthHeader
GetClaudeAuthHeader get claude auth header
controller/channel-billing.go:148
↓ 1 callers
Function
GetCompletionRatioCopy
()
setting/ratio_setting/model_ratio.go:692
↓ 1 callers
Method
GetConfig
()
oauth/generic.go:85
↓ 1 callers
Method
GetContainerDetails
GetContainerDetails retrieves detailed information about a specific container
pkg/ionet/container.go:34
↓ 1 callers
Function
GetContextKeyStringMap
(c *gin.Context, key constant.ContextKey)
common/gin.go:259
↓ 1 callers
Function
GetContextKeyTime
(c *gin.Context, key constant.ContextKey)
common/gin.go:263
↓ 1 callers
Function
GetCreateCacheRatioCopy
()
setting/ratio_setting/cache_ratio.go:184
↓ 1 callers
Method
GetData
(v any)
model/task.go:80
↓ 1 callers
Function
GetDefaultEndpointInfo
GetDefaultEndpointInfo 返回指定端点类型的默认信息以及是否存在
common/endpoint_defaults.go:34
↓ 1 callers
Function
GetDefaultPricingMaps
GetDefaultPricingMaps returns independent copies for model-level reset and first-write initialization; callers cannot mutate the built-in defaults.
setting/ratio_setting/model_ratio.go:413
↓ 1 callers
Method
GetDeployment
GetDeployment retrieves detailed information about a specific deployment
pkg/ionet/deployment.go:90
↓ 1 callers
Function
GetDiskCacheInfo
GetDiskCacheInfo 获取磁盘缓存目录信息
common/disk_cache.go:141
↓ 1 callers
Function
GetDiskSpaceInfo
GetDiskSpaceInfo 获取缓存目录所在磁盘的空间信息 (Unix/Linux/macOS)
common/system_monitor_unix.go:12
↓ 1 callers
Function
GetFAQ
()
setting/console_setting/validation.go:259
↓ 1 callers
Function
GetFileTypeFromUrl
GetFileTypeFromUrl 获取文件类型,返回 mime type, 例如 image/jpeg, image/png, image/gif, image/bmp, image/tiff, application/pdf 如果获取失败,返回 application/octet-stream
service/file_decoder.go:23
↓ 1 callers
Function
GetFlushIntervalMinutes
()
setting/perf_metrics_setting/config.go:40
↓ 1 callers
Function
GetGeminiSafetySetting
GetGeminiSafetySetting 获取安全设置
setting/model_setting/gemini.go:71
↓ 1 callers
Function
GetGrokSettings
()
setting/model_setting/grok.go:22
↓ 1 callers
Function
GetGroupEnabledModels
(group string)
model/ability.go:43
↓ 1 callers
Function
GetGroupRateLimit
(group string)
setting/rate_limit.go:47
↓ 1 callers
Function
GetImageConfig
GetImageConfig 获取图片配置
service/file_service.go:387
↓ 1 callers
Function
GetImageRatioCopy
()
setting/ratio_setting/model_ratio.go:696
↓ 1 callers
Function
GetIp
()
common/utils.go:45
↓ 1 callers
Function
GetJSONFieldNames
(t reflect.Type)
relaykit/dto/openai_image.go:133
↓ 1 callers
Function
GetLatestCodexClientVersion
(ctx context.Context, client *http.Client)
service/codex_models.go:29
↓ 1 callers
Function
GetLocalRealtimeID
(c *gin.Context)
relay/helper/common.go:338
↓ 1 callers
Function
GetLocalizer
GetLocalizer returns a localizer for the specified language
i18n/i18n.go:65
↓ 1 callers
Function
GetLogByTokenId
(tokenId int)
model/log.go:139
↓ 1 callers
Function
GetMjRequestModel
(relayMode int, midjRequest *dto.MidjourneyRequest)
service/midjourney.go:139
↓ 1 callers
Function
GetModelConnections
()
model/model_meta.go:419
↓ 1 callers
Method
GetModelLimits
()
model/token.go:343
↓ 1 callers
Method
GetModelList
()
relay/channel/sub2api/adaptor.go:11
↓ 1 callers
Function
GetModelMeta
GetModelMeta 根据 ID 获取单条模型信息
controller/model_meta.go:87
↓ 1 callers
Function
GetModelPriceCopy
()
setting/ratio_setting/model_ratio.go:688
↓ 1 callers
Function
GetModelPricingIssues
(c *gin.Context)
controller/model_pricing_config.go:21
↓ 1 callers
Function
GetModelQuotaTypes
GetModelQuotaTypes 返回指定模型的计费类型集合(来自缓存)
model/model_extra.go:21
↓ 1 callers
Function
GetModelRegion
(other string, localModelName string)
relay/channel/vertex/relay-vertex.go:5
↓ 1 callers
Method
GetName
()
oauth/oidc.go:43
↓ 1 callers
Function
GetNetworkIps
()
common/utils.go:72
↓ 1 callers
Function
GetNodeIdentity
()
common/node_identity.go:26
↓ 1 callers
Method
GetOpenAIError
()
relaykit/dto/openai_compaction.go:18
↓ 1 callers
Function
GetPasskeyByCredentialID
(credentialID []byte)
model/passkey.go:142
↓ 1 callers
Function
GetPerfMetrics
(modelName string, group string, startTs int64, endTs int64)
model/perf_metric.go:51
↓ 1 callers
Function
GetPerfMetricsSummaryBucketsAll
(startTs int64, endTs int64, groups []string)
model/perf_metric.go:99
↓ 1 callers
Method
GetPriceEstimation
GetPriceEstimation calculates the estimated cost for a deployment
pkg/ionet/deployment.go:187
↓ 1 callers
Function
GetPricing
(c *gin.Context)
controller/pricing.go:42
↓ 1 callers
Method
GetProviderPrefix
GetProviderPrefix returns the prefix for auto-generated usernames (e.g., "github_")
oauth/provider.go:35
↓ 1 callers
Function
GetQuotaDataByUserId
(userId int, startTime int64, endTime int64)
model/usedata.go:162
↓ 1 callers
Function
GetQuotaDataByUsername
(username string, startTime int64, endTime int64)
model/usedata.go:151
↓ 1 callers
Function
GetQuotaDataGroupByUser
(startTime int64, endTime int64)
model/usedata.go:173
↓ 1 callers
Function
GetRandomInt
(max int)
common/utils.go:234
↓ 1 callers
Function
GetRankingQuotaBuckets
(startTime int64, endTime int64, bucketSize int64)
model/usedata_rankings.go:53
↓ 1 callers
Function
GetRankingQuotaTotals
(startTime int64, endTime int64)
model/usedata_rankings.go:21
↓ 1 callers
Function
GetRankingsSnapshot
(period string)
service/rankings.go:138
↓ 1 callers
Function
GetRatioConfig
(c *gin.Context)
controller/ratio_config.go:13
↓ 1 callers
Function
GetRecentPerfMetricSuccessBuckets
GetRecentPerfMetricSuccessBuckets reads the latest nonempty hours within the supplied history window, independently of the summary's reporting window.
model/perf_metric.go:120
↓ 1 callers
Function
GetRequestBody
(c *gin.Context)
common/gin.go:40
↓ 1 callers
Function
GetRequestPluginInstances
(c *gin.Context)
controller/request_plugin.go:41
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/jimeng/adaptor.go:35
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/ali/adaptor.go:89
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/aws/adaptor.go:86
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/volcengine/adaptor.go:239
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/vertex/adaptor.go:188
↓ 1 callers
Method
GetRequestURL
(info *relaycommon.RelayInfo)
relay/channel/codex/adaptor.go:141
↓ 1 callers
Method
GetReturnDocuments
()
relaykit/dto/rerank.go:47
← previous
next →
5,301–5,400 of 15,592, ranked by callers