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
↓ 1 callers
Function
getInputControlState
({ disabled, groups, hasStopHandler, isGenerating, isModelLoading, models, text, }: InputControl
web/src/features/playground/lib/input/input-control-utils.ts:52
↓ 1 callers
Function
getJSONStringValue
(result ojson.Result, field string)
middleware/distributor.go:411
↓ 1 callers
Function
getJsonError
( value: string, predicate?: (parsed: unknown) => boolean )
web/src/features/system-settings/integrations/utils.ts:113
↓ 1 callers
Function
getLatencyColorClass
(latency: number)
web/src/features/dashboard/lib/api-info.ts:24
↓ 1 callers
Function
getLatestChannelTestCachePatch
( results: TestResult[] )
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:156
↓ 1 callers
Function
getLegacySavedGranularity
()
web/src/features/dashboard/lib/filters.ts:40
↓ 1 callers
Function
getLineAndColumn
( text: string, position: number )
web/src/features/system-settings/utils/json-parser.ts:72
↓ 1 callers
Function
getLineIndent
(value: string, cursor: number)
web/src/components/json-code-editor/json-code-editor-utils.ts:194
↓ 1 callers
Function
getLocalPricingSyncData
()
controller/ratio_sync.go:134
↓ 1 callers
Function
getLogStats
(params: GetLogStatsParams = {})
web/src/features/usage-logs/api.ts:84
↓ 1 callers
Function
getLogTypeValue
(value: unknown)
web/src/features/usage-logs/components/common-logs-filter-bar.tsx:78
↓ 1 callers
Function
getLoginSessions
()
web/src/features/profile/api.ts:235
↓ 1 callers
Function
getLoginVerificationRequirements
( challenge: LoginChallenge, signal: AbortSignal )
web/src/features/auth/secure-verification/api.ts:113
↓ 1 callers
Function
getM4ADuration
getM4ADuration 解析 M4A/MP4 文件的 'mvhd' box。
common/audio.go:152
↓ 1 callers
Function
getMP3Duration
getMP3Duration 解析 MP3 文件以获取时长。 注意:对于 VBR (Variable Bitrate) MP3,这个估算可能不完全精确,但通常足够好。 FFmpeg 在这种情况下会扫描整个文件来获得精确值,但这里的库提供了快速估算。
common/audio.go:56
↓ 1 callers
Function
getMarkdownContent
(children: ReactNode)
web/src/components/ai-elements/response-content.ts:159
↓ 1 callers
Function
getMarkdownExampleFenceLength
(block: MarkdownExampleFence)
web/src/components/ai-elements/response-content.ts:51
↓ 1 callers
Function
getMaxTopUpAmount
()
controller/topup.go:214
↓ 1 callers
Function
getMessageActionState
(message: Message)
web/src/features/playground/lib/message/message-action-utils.ts:31
↓ 1 callers
Function
getMessageActionsVisibilityClass
( alwaysVisible: boolean )
web/src/features/playground/lib/message/message-action-utils.ts:43
↓ 1 callers
Function
getMessageAlignment
( message: Message, layoutMode: PlaygroundMessageLayoutMode )
web/src/features/playground/lib/message/message-layout-utils.ts:24
↓ 1 callers
Function
getMessageAlignmentClass
(alignment: MessageAlignment)
web/src/features/playground/lib/message/message-layout-utils.ts:35
↓ 1 callers
Function
getMessageContentState
( message: Message, versionContent: string )
web/src/features/playground/lib/message/message-content-utils.ts:79
↓ 1 callers
Function
getMessageContentStyles
()
web/src/features/playground/lib/message/message-styles.ts:23
↓ 1 callers
Function
getMessageEditorState
( message: Message, editText: string, originalText: string )
web/src/features/playground/lib/message/message-editor-utils.ts:28
↓ 1 callers
Function
getMessageErrorState
( message: Message, isAdmin: boolean )
web/src/features/playground/lib/message/message-error-utils.ts:43
↓ 1 callers
Function
getMessageSize
(message: Message)
web/src/features/playground/lib/storage/storage.ts:114
↓ 1 callers
Function
getMetaPinnedColumns
( table: TanstackTable<TData> )
web/src/components/data-table/core/data-table-view.tsx:190
↓ 1 callers
Function
getMissingModels
()
web/src/features/models/api.ts:238
↓ 1 callers
Function
getModeFromLabel
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:627
↓ 1 callers
Function
getModeFromPlaceholder
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:634
↓ 1 callers
Function
getModeLabel
(mode?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:86
↓ 1 callers
Function
getModePathLabel
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:614
↓ 1 callers
Function
getModePathPlaceholder
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:620
↓ 1 callers
Function
getModeTagTailwind
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:595
↓ 1 callers
Function
getModeToLabel
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:641
↓ 1 callers
Function
getModeToPlaceholder
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:647
↓ 1 callers
Function
getModeValueLabel
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:654
↓ 1 callers
Function
getModeValuePlaceholder
(mode: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:673
↓ 1 callers
Function
getModel
(id: number)
web/src/features/models/api.ts:68
↓ 1 callers
Function
getModelChannelState
(model: Model)
web/src/features/models/lib/model-utils.ts:200
↓ 1 callers
Function
getModelDefaults
(settings: BillingSettings)
web/src/features/system-settings/billing/section-registry.tsx:29
↓ 1 callers
Function
getModelFallback
( models: ModelOption[], currentModel: string )
web/src/features/playground/lib/options/playground-option-utils.ts:21
↓ 1 callers
Function
getModelMappingSyncBaseline
( mapping: string, modelsValue: string )
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:281
↓ 1 callers
Function
getModels
( params: GetModelsParams = {} )
web/src/features/models/api.ts:48
↓ 1 callers
Function
getMultiKeyConfirmMessage
( action: MultiKeyConfirmAction | null )
web/src/features/channels/lib/multi-key-utils.ts:40
↓ 1 callers
Function
getMultiKeyStatus
( channelId: number, page = 1, pageSize = 50, status?: number )
web/src/features/channels/api.ts:560
↓ 1 callers
Function
getMultiKeyStatusConfig
(status: number)
web/src/features/channels/lib/multi-key-utils.ts:28
↓ 1 callers
Function
getNameRuleOptions
(t: TFunction)
web/src/features/models/constants.ts:33
↓ 1 callers
Function
getNextSelectedValues
( selectedValues: Set<string>, optionValue: string, singleSelect: boolean )
web/src/components/data-table/toolbar/faceted-filter.tsx:196
↓ 1 callers
Function
getNumber
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:46
↓ 1 callers
Function
getOGGDuration
getOGGDuration 解析 OGG/Vorbis 文件以获取时长。
common/audio.go:163
↓ 1 callers
Function
getOptionLoadErrorMessage
( error: unknown, fallbackMessage: string )
web/src/features/playground/lib/options/playground-option-utils.ts:60
↓ 1 callers
Function
getOpusDuration
getOpusDuration 解析 Opus 文件(在 OGG 容器中)以获取时长。
common/audio.go:198
↓ 1 callers
Function
getOrBuildAC
(dict []string)
service/str.go:98
↓ 1 callers
Function
getOrCreateDirectClient
(policy HTTPTransportPolicy)
service/http_client.go:425
↓ 1 callers
Function
getPageNumbers
(currentPage: number, totalPages: number)
web/src/lib/utils.ts:54
↓ 1 callers
Function
getParamOverrideActionLabel
( action: string, t: (key: string) => string )
web/src/features/usage-logs/lib/format.ts:63
↓ 1 callers
Function
getParamOverrideMap
(info *RelayInfo)
relay/common/override.go:523
↓ 1 callers
Function
getParameterControlValueText
( key: PlaygroundParameterKey, value: ParameterValue )
web/src/features/playground/lib/parameters/playground-parameters.ts:120
↓ 1 callers
Function
getPasskeyStatus
()
web/src/features/auth/passkey/api.ts:32
↓ 1 callers
Function
getPasswordEncryptionKey
()
web/src/features/auth/lib/password-encryption.ts:59
↓ 1 callers
Function
getPasswordScore
( characterCount: number, acceptable: boolean, variety: number )
web/src/components/password-strength-utils.ts:137
↓ 1 callers
Function
getPaymentMethodName
( method: string, t?: (key: string) => string )
web/src/features/wallet/lib/billing.ts:71
↓ 1 callers
Function
getPaymentTypeOption
(value: string)
web/src/features/system-settings/integrations/payment-method-dialog.tsx:113
↓ 1 callers
Function
getPaymentUrl
(data: unknown)
web/src/features/wallet/hooks/use-waffo-payment.ts:28
↓ 1 callers
Function
getPermissionCatalog
()
web/src/features/users/api.ts:216
↓ 1 callers
Function
getPinnedColumnClassName
( pinnedColumn: DataTablePinnedColumn, kind: 'header' | 'cell' )
web/src/components/data-table/core/column-pinning.ts:57
↓ 1 callers
Function
getPlanFormSchema
(t: TFunction)
web/src/features/subscriptions/lib/plan-form.ts:26
↓ 1 callers
Function
getPluginCredentials
( channelId: number )
web/src/features/channels/api.ts:529
↓ 1 callers
Function
getPreferredKey
(keys: ApiKey[])
web/src/features/dashboard/components/overview/overview-dashboard.tsx:163
↓ 1 callers
Function
getPreferredModelOwners
(modelNames []string, groups []string)
controller/model.go:141
↓ 1 callers
Function
getPrefillGroups
( type: 'model' | 'group' = 'model' )
web/src/features/channels/api.ts:850
↓ 1 callers
Function
getPrefillGroups
( type?: 'model' | 'tag' | 'endpoint' )
web/src/features/models/api.ts:246
↓ 1 callers
Function
getPreviewText
()
web/src/features/users/components/user-quota-dialog.tsx:56
↓ 1 callers
Function
getPreviewText
( content: string, maxLength: number = 60 )
web/src/features/dashboard/lib/text.ts:22
↓ 1 callers
Function
getPreviousUserMessage
( messages: Message[], beforeIndex: number )
web/src/features/playground/lib/message/conversation-message-utils.ts:99
↓ 1 callers
Function
getPriceDetail
( row: ModelPricingSnapshot, t: (key: string) => string )
web/src/features/system-settings/models/model-pricing-snapshots.ts:120
↓ 1 callers
Function
getPriceSummary
( row: ModelPricingSnapshot, t: (key: string) => string )
web/src/features/system-settings/models/model-pricing-snapshots.ts:103
↓ 1 callers
Function
getPricing
()
web/src/features/pricing/api.ts:28
↓ 1 callers
Function
getPrimitiveTextContent
(content: React.ReactNode)
web/src/components/data-table/static/static-data-table.tsx:194
↓ 1 callers
Function
getPrimitiveTextContent
(content: React.ReactNode)
web/src/components/data-table/core/data-table-row.tsx:143
↓ 1 callers
Function
getPriority
(group string, model string, retry int)
model/ability.go:63
↓ 1 callers
Function
getProgress
(task: SystemTask)
web/src/features/system-info/components/system-tasks-table.tsx:76
↓ 1 callers
Function
getPublicPlans
()
web/src/features/subscriptions/api.ts:222
↓ 1 callers
Function
getPublishTime
(item map[string]any)
setting/console_setting/validation.go:240
↓ 1 callers
Function
getQuotaTypeConfig
( t: TFunction )
web/src/features/models/constants.ts:146
↓ 1 callers
Function
getQuotaTypeLabels
( t: TFunction )
web/src/features/pricing/constants.ts:66
↓ 1 callers
Function
getRankings
( period: RankingPeriod )
web/src/features/rankings/api.ts:29
↓ 1 callers
Function
getReasoningEffortVariant
( effort: string | undefined )
web/src/features/usage-logs/lib/format.ts:173
↓ 1 callers
Function
getRedemption
( id: number )
web/src/features/redemption-codes/api.ts:58
↓ 1 callers
Function
getRedemptionFormErrorMessages
(t: TFunction)
web/src/features/redemption-codes/constants.ts:117
↓ 1 callers
Function
getRedemptionFormSchema
(t: TFunction)
web/src/features/redemption-codes/lib/redemption-form.ts:34
↓ 1 callers
Function
getRedemptionStatusOptions
(t: TFunction)
web/src/features/redemption-codes/constants.ts:73
↓ 1 callers
Function
getRelativeTime
* Get relative time string from a date
web/src/components/notification-popover.tsx:70
↓ 1 callers
Function
getRemainingDays
(sub: UserSubscriptionRecord)
web/src/features/wallet/components/subscription-plans-card.tsx:225
↓ 1 callers
Method
getRequestUrl
(info *relaycommon.RelayInfo, modelName, suffix string)
relay/channel/vertex/adaptor.go:139
↓ 1 callers
Function
getRequiredTextRows
(text: string)
web/src/components/risk-acknowledgement-dialog.tsx:67
↓ 1 callers
Function
getResetCreditStatusBadge
( value: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:377
↓ 1 callers
Function
getResetPeriodOptions
(t: TFunction)
web/src/features/subscriptions/constants.ts:45
← previous
next →
6,801–6,900 of 15,409, ranked by callers