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
QuotaFromDecimalStrict
QuotaFromDecimalStrict converts an in-range single-request quota and rejects a value that would otherwise be saturated at the int32 boundary.
common/quota_math.go:166
Function
QuotaLogPreview
(props: { log: UsageLog })
web/src/features/usage-logs/components/__tests__/quota-adjustment.test.tsx:65
Function
QuotaSettingsSection
({ defaultValues, complianceConfirmed = true, }: QuotaSettingsSectionProps)
web/src/features/system-settings/general/quota-settings-section.tsx:87
Function
QuotaTable
(props: { remaining: number; used: number })
web/src/features/users/components/__tests__/quota-display.test.tsx:68
Function
QuotaTable
(props: { apiKey: ApiKey })
web/src/features/keys/components/__tests__/api-key-listing.test.tsx:82
Function
RadioGroup
({ className, ...props }: RadioGroupPrimitive.Props)
web/src/components/ui/radio-group.tsx:24
Function
RadioGroupItem
(props: { item: { value: string label: string icon: (props: SVGProps<SVGSVGElement>) => React.Re
web/src/components/config-drawer.tsx:162
Function
RadioGroupItem
({ className, ...props }: RadioPrimitive.Root.Props)
web/src/components/ui/radio-group.tsx:34
Function
RadiusConfig
()
web/src/components/config-drawer.tsx:396
Function
RankBadge
(props: { rank: number })
web/src/features/pricing/components/model-details-apps.tsx:46
Function
Rankings
()
web/src/features/rankings/index.tsx:37
Function
RankingsError
(props: { message: string })
web/src/features/rankings/index.tsx:125
Function
RankingsHero
(props: RankingsHeroProps)
web/src/features/rankings/components/rankings-hero.tsx:41
Function
RankingsLoading
()
web/src/features/rankings/index.tsx:115
Function
RateLimitDialog
({ open, onOpenChange, onSave, editData, }: RateLimitDialogProps)
web/src/features/system-settings/request-limits/rate-limit-dialog.tsx:67
Function
RateLimitGroupSection
(props: RateLimitGroupSectionProps)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:575
Function
RateLimitSection
({ defaultValues }: RateLimitSectionProps)
web/src/features/system-settings/request-limits/rate-limit-section.tsx:89
Function
RateLimitVisualEditor
({ value, onChange, }: RateLimitVisualEditorProps)
web/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx:39
Function
RateLimitWindow
(props: RateLimitWindowProps)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:454
Function
RateLimitWindowGrid
(props: { fiveHourWindow?: CodexRateLimitWindow | null weeklyWindow?: CodexRateLimitWindow | null })
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:527
Function
RateLimitsSection
(props: { model: PricingModel })
web/src/features/pricing/components/model-details-api.tsx:668
Function
RatioSettingsCard
({ modelDefaults: initialModelDefaults, groupDefaults, toolPricesDefault, titleKey = 'Pricing Ratios',
web/src/features/system-settings/models/ratio-settings-card.tsx:168
Function
RawExprEditor
({ exprString, onChange }: RawExprEditorProps)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:310
Function
ReactIconByName
({ name, ...props }: ReactIconByNameProps)
web/src/components/react-icon-by-name.tsx:146
Method
Read
(p []byte)
common/body_storage.go:86
Method
Read
(p []byte)
common/body_storage.go:389
Method
Read
([]byte)
relay/channel/gemini/relay_responses_test.go:188
Method
Read
Read serves the converted output. An error the plugin returns after the first output ends the stream as a read error does. For a streaming client, an
relay/channel/providerplugin/stream.go:194
Method
Read
(p []byte)
relay/channel/openai/image_stream_test.go:262
Method
Read
(p []byte)
relay/channel/openai/relay_responses_billing_test.go:43
Method
Read
(p []byte)
relay/requestplugin/attachments.go:740
Method
Read
(p []byte)
relay/requestplugin/attachments.go:761
Method
ReadAt
(p []byte, offset int64)
relay/requestplugin/pdf.go:107
Function
ReadDiskCacheFile
ReadDiskCacheFile 读取磁盘缓存文件
common/disk_cache.go:88
Function
ReadDiskCacheFileString
ReadDiskCacheFileString 读取磁盘缓存文件为字符串
common/disk_cache.go:93
Function
ReasoningEffort
(req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:168
Method
ReasoningState
()
relaykit/relayconvert/convmeta/meta.go:227
Function
RechargeFormCard
({ topupInfo, presetAmounts, selectedPreset, onSelectPreset, topupAmount, onTopupAmountChange, p
web/src/features/wallet/components/recharge-form-card.tsx:86
Method
Record
(sample Sample)
pkg/perf_metrics/types.go:6
Function
RecordEntry
(props: { entry: RequestPluginRecordEntry loadIcons?: boolean })
web/src/features/usage-logs/components/request-plugin-record.tsx:152
Function
RedemptionList
()
web/src/features/redemption-codes/components/__tests__/bulk-delete.test.tsx:52
Function
Redemptions
()
web/src/features/redemption-codes/index.tsx:28
Function
RedemptionsDeleteDialog
()
web/src/features/redemption-codes/components/redemptions-delete-dialog.tsx:39
Function
RedemptionsDialogs
()
web/src/features/redemption-codes/components/redemptions-dialogs.tsx:23
Function
RedemptionsExportDialog
(props: RedemptionsExportDialogProps)
web/src/features/redemption-codes/components/redemptions-export-dialog.tsx:39
Function
RedemptionsMobileList
(props: RedemptionsMobileListProps)
web/src/features/redemption-codes/components/redemptions-mobile-list.tsx:78
Function
RedemptionsMobileSkeleton
()
web/src/features/redemption-codes/components/redemptions-mobile-list.tsx:50
Function
RedemptionsMutateDrawer
({ open, onOpenChange, currentRow, }: RedemptionsMutateDrawerProps)
web/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx:88
Function
RedemptionsPrimaryButtons
()
web/src/features/redemption-codes/components/redemptions-primary-buttons.tsx:32
Function
RedemptionsProvider
({ children, }: { children: React.ReactNode })
web/src/features/redemption-codes/components/redemptions-provider.tsx:38
Function
RedemptionsTable
()
web/src/features/redemption-codes/components/redemptions-table.tsx:56
Function
RedirectStep
(props: { url: string })
web/src/features/channels/components/dialogs/plugin-login-steps.tsx:104
Function
RedisDel
func RedisExpire(key string, expiration time.Duration) error { ctx := context.Background() return RDB.Expire(ctx, key, expiration).Err() } func Red
common/redis.go:91
Function
RedisGet
(key string)
common/redis.go:72
Function
RedisHIncrBy
(key, field string, delta int64)
common/redis.go:275
Function
RedisHSetField
(key, field string, value any)
common/redis.go:302
Function
RedisHSetObj
(key string, obj any, expiration time.Duration)
common/redis.go:107
Function
RedisIncr
RedisIncr Add this function to handle atomic increments
common/redis.go:242
Function
RedisSet
(key string, value string, expiration time.Duration)
common/redis.go:64
Function
RefreshAuth
(c *gin.Context)
controller/auth_session.go:17
Function
RefreshCodexChannelCredential
(c *gin.Context)
controller/channel.go:744
Function
RefreshCodexOAuthToken
(ctx context.Context, refreshToken string)
service/codex_oauth.go:29
Method
Refund
(*gin.Context)
controller/relay_task_plugin_test.go:49
Method
Refund
(*gin.Context)
controller/plugin_native_e2e_test.go:57
Method
Refund
(*gin.Context)
service/tiered_settle_test.go:327
Method
Refund
()
service/funding_source.go:68
Method
Refund
()
service/funding_source.go:122
Method
Refund
Refund 退还所有预扣费,幂等安全,异步执行。
service/billing_session.go:88
Method
Refund
(*gin.Context)
relay/alpha_search_handler_test.go:90
Method
Refund
(*gin.Context)
relay/convert_request_error_test.go:43
Method
Refund
(*gin.Context)
relay/helper/price_test.go:799
Function
RegenerateBackupCodes
RegenerateBackupCodes 重新生成备用码
controller/twofa.go:121
Function
Register
(c *gin.Context)
controller/user.go:217
Function
RelatedPolicyLink
(props: { section: 'routing' | 'health' })
web/src/features/system-settings/request-policies/related-policy-link.tsx:12
Function
RelayCtxGo
(ctx context.Context, f func())
common/gopool.go:22
Function
RelayMidjourney
(c *gin.Context)
controller/relay.go:366
Function
RelayMidjourneyImage
(c *gin.Context)
relay/mjproxy_handler.go:29
Function
RelayNotImplemented
(c *gin.Context)
controller/relay.go:459
Function
RelayPanicRecover
()
middleware/recover.go:12
Function
RelayTask
(c *gin.Context)
controller/relay.go:539
Function
RelayTaskFetch
(c *gin.Context)
controller/relay.go:518
Function
ReloadCustomProviders
ReloadCustomProviders reloads all custom OAuth providers from the database
oauth/registry.go:145
Function
RemoveDiskCacheFile
RemoveDiskCacheFile 删除磁盘缓存文件
common/disk_cache.go:102
Function
RemoveDuplicate
(s []string)
service/str.go:51
Function
RenameDeploymentDialog
({ open, onOpenChange, deploymentId, currentName, }: { open: boolean onOpenChange: (open: boolean)
web/src/features/models/components/dialogs/rename-deployment-dialog.tsx:34
Function
RendererArtifacts
RendererArtifacts projects a SUCCESS task's artifacts for a presenter as {key: {key, type, url, mimeType?}}, each url a gateway content address from c
relay/channel/task/jsplugin/adaptor.go:1267
Function
ReorderChannelPriority
(c *gin.Context)
controller/channel_priority.go:21
Function
RequestBlock
(props: { demo: ApiDemoConfig; transitioning: boolean })
web/src/features/home/components/hero-terminal-demo.tsx:319
Function
RequestCreemPay
(c *gin.Context)
controller/topup_creem.go:153
Function
RequestEpay
(c *gin.Context)
controller/topup.go:291
Function
RequestPluginAdminSteps
(props: { steps: RequestPluginAdminStep[] })
web/src/features/usage-logs/components/request-plugin-record.tsx:434
Function
RequestPluginConfigField
(props: RequestPluginConfigFieldProps)
web/src/features/task-plugins/components/request-plugin-config-field.tsx:84
Function
RequestPluginConfigForm
(props: RequestPluginConfigFormProps)
web/src/features/task-plugins/components/request-plugin-config-form.tsx:53
Function
RequestPluginConfigModelValues
( props: RequestPluginConfigModelValuesProps )
web/src/features/task-plugins/components/request-plugin-config-model-values.tsx:63
Function
RequestPluginConfigRows
(props: RequestPluginConfigRowsProps)
web/src/features/task-plugins/components/request-plugin-config-rows.tsx:74
Function
RequestPluginDryRunDialog
( props: RequestPluginDryRunDialogProps )
web/src/features/task-plugins/components/request-plugin-dry-run-dialog.tsx:79
Function
RequestPluginFieldHint
(props: { text?: string })
web/src/features/task-plugins/components/request-plugin-field-hint.tsx:32
Function
RequestPluginIconTile
(props: { plugin: PluginIconInput size?: 'md' | 'lg' })
web/src/features/task-plugins/components/request-plugin-summary.tsx:29
Function
RequestPluginInstanceEditor
( props: RequestPluginInstanceEditorProps )
web/src/features/task-plugins/components/request-plugin-instance-editor.tsx:175
Function
RequestPluginLogMarker
(props: { items: RequestPluginRecordItem[] })
web/src/features/usage-logs/components/request-plugin-record.tsx:494
← previous
next →
11,101–11,200 of 15,409, ranked by callers