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
channel
(type: number, setting = '')
web/src/features/channels/components/__tests__/channel-test-dialog-endpoints.test.tsx:53
↓ 1 callers
Function
channel
(name: string)
web/src/features/channels/components/__tests__/table-refresh.test.tsx:47
↓ 1 callers
Function
channelAffinityUsageCacheStatsLock
(key string)
service/channel_affinity.go:1017
↓ 1 callers
Function
channelConfigurationBlockClassName
( status: ChannelConfigurationStatus, className?: string )
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:384
↓ 1 callers
Function
channelGroupFilterCondition
()
model/channel.go:155
↓ 1 callers
Function
channelGroupFilterPattern
(group string)
model/channel.go:162
↓ 1 callers
Function
channelIDsFromChannels
(channels []*model.Channel)
controller/channel.go:80
↓ 1 callers
Function
channelPluginHasHook
channelPluginHasHook reports a task plugin channel whose plugin exports hook. It reads the setting without GetSetting, which clears an invalid stored
model/channel.go:973
↓ 1 callers
Function
channelSelectCompatiblePluginSource
(key string, channelType, compatibleType int)
service/channel_select_test.go:149
↓ 1 callers
Function
channelTypeOptionsForTaskPluginBind
( canBindTaskPlugin: boolean )
web/src/features/channels/constants.ts:215
↓ 1 callers
Function
channelVerification
()
web/src/features/channels/hooks/__tests__/channel-key-disclosure.test.tsx:51
↓ 1 callers
Function
chartGraphicDatum
(value: unknown)
web/src/features/dashboard/components/flow/flow-charts.tsx:194
↓ 1 callers
Function
chatCreatedAt
(created any)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:288
↓ 1 callers
Method
chatTool
()
relaykit/relayconvert/internal/toolconv/encode.go:276
↓ 1 callers
Function
chatToolCallToResponsesOutput
(toolCall dto.ToolCallRequest, responseID string, index int, status string, tools *convmeta.ResponsesToolState
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:221
↓ 1 callers
Function
checkAndSendSubscriptionQuotaNotify
(relayInfo *relaycommon.RelayInfo)
service/quota.go:507
↓ 1 callers
Function
checkExpressionTypes
(ast: ExpressionNode)
web/src/features/pricing/lib/billing-expression/parser.ts:351
↓ 1 callers
Function
checkFormEffects
checkFormEffects refuses the effects a form body cannot take: anything other than json.patch replace operations with a string value.
relay/requestplugin/form.go:139
↓ 1 callers
Function
checkIfChatComplete
(a *Adaptor, c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/coze/relay-coze.go:216
↓ 1 callers
Function
checkMemoryLimit
(userId int, notifyType string)
service/notify-limit.go:73
↓ 1 callers
Function
checkMjTaskNeedUpdate
(oldTask *model.Midjourney, newTask dto.MidjourneyDto)
controller/midjourney.go:226
↓ 1 callers
Function
checkOverflow
(textContainer: HTMLDivElement | null)
web/src/components/long-text.tsx:96
↓ 1 callers
Function
checkReadmeTokens
Raw HTML and images never reach the page, nested content included.
web/src/features/task-plugins/lib/plugin-readme.ts:45
↓ 1 callers
Function
checkRedisLimit
(userId int, notifyType string)
service/notify-limit.go:57
↓ 1 callers
Function
checkSampleValue
checkSampleValue refuses media and links anywhere in a sample body. path is the JSON path of value; element tells an array element, the only place the
pkg/jsplugin/sample.go:130
↓ 1 callers
Function
checkServerAvailability
(port, maxRetries = 30, retryDelay = 1000)
electron/main.js:178
↓ 1 callers
Function
checkSingleCondition
(doc *ojson.Doc, contextJSON string, condition *ConditionOperation)
relay/common/override.go:670
↓ 1 callers
Function
checkStreamEventsGolden
(t *testing.T, name string, events []any)
relaykit/relayconvert/golden_test.go:75
↓ 1 callers
Function
checkSystemPerformance
checkSystemPerformance 检查系统性能是否超过阈值
middleware/performance.go:41
↓ 1 callers
Function
checkTaskPluginRouteIntent
checkTaskPluginRouteIntent validates a native decoder's result against the candidate route. A rejection names a log reason and the client's detail.
middleware/task_plugin.go:378
↓ 1 callers
Function
checkWriter
(writer io.Writer)
common/custom-event.go:27
↓ 1 callers
Function
childOf
(value gjson.Result, token string)
relay/requestplugin/record.go:135
↓ 1 callers
Function
chineseTranslator
()
web/src/features/usage-logs/lib/__tests__/export.test.ts:53
↓ 1 callers
Function
chooseAllFields
(checked: boolean)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:274
↓ 1 callers
Function
chooseField
( name: string, field: MetadataSyncField, checked: boolean )
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:263
↓ 1 callers
Function
chooseMode
( user: ReturnType<typeof userEvent.setup>, dialog: HTMLElement, mode: string )
web/src/features/task-plugins/__tests__/request-plugin-config-form.test.tsx:192
↓ 1 callers
Function
chooseModels
(items: MetadataSyncCandidate[], checked: boolean)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:241
↓ 1 callers
Function
chooseSample
(index: number)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:620
↓ 1 callers
Function
citedTextFromAnnotation
(text string, citation map[string]any)
relaykit/relayconvert/internal/oai_chat/citations.go:56
↓ 1 callers
Function
clampPercent
(value: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:168
↓ 1 callers
Function
classifyFailure
(local bool, code, errorType string, status int)
pkg/perf_metrics/outcome.go:95
↓ 1 callers
Function
classifyWindowByDuration
( windowData?: CodexRateLimitWindow | null )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:284
↓ 1 callers
Function
claudeDefaultsMeta
(defaultMaxTokens func(string) int)
relaykit/relayconvert/claude_default_max_tokens_test.go:204
↓ 1 callers
Function
claudeEffortDiagnostics
claudeEffortDiagnostics reports a requested effort that is sent at another level or removed because the model takes none.
relaykit/relayconvert/reasoning/claude.go:392
↓ 1 callers
Function
claudeHostedCallOutputType
(blockType string, name string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:150
↓ 1 callers
Function
claudeHostedPositions
(items []positionedClaudeBlocks)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:658
↓ 1 callers
Function
claudeHostedResultErrorCode
(content any, fallback string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:181
↓ 1 callers
Function
claudeHostedResultOutputType
(blockType string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:166
↓ 1 callers
Function
claudeImageFits
(w, h, maxEdge, maxTokens int)
tokenkit/image.go:220
↓ 1 callers
Function
claudeMessagesToResponsesInput
(messages []dto.ClaudeMessage)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:132
↓ 1 callers
Function
claudeResizedSize
claudeResizedSize is the size Claude scales an image to: the largest aspect-preserving size whose padded sides fit maxEdge and whose 28px patches fit
tokenkit/image.go:199
↓ 1 callers
Function
claudeSystemToResponsesInstructions
(request *dto.ClaudeRequest)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:108
↓ 1 callers
Function
claudeToChatStreamState
(info *relaycommon.RelayInfo)
relay/channel/claude/relay-claude.go:171
↓ 1 callers
Function
claudeToolChoiceToResponses
(value any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:248
↓ 1 callers
Function
claudeToolResultToChat
claudeToolResultToChat maps a structured tool_result content array onto Chat Completions, where a tool message may only carry text. Text blocks stay o
relaykit/relayconvert/internal/claude_messages/to_oai_chat_req.go:294
↓ 1 callers
Function
claudeToolResultToResponsesOutput
(content any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:285
↓ 1 callers
Function
claudeToolsToResponsesTools
(value any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:224
↓ 1 callers
Function
claudeUsesOpus47Tokenizer
claudeUsesOpus47Tokenizer reports whether a lower-cased Claude model name uses the tokenizer and high-resolution image tier introduced with Claude Opu
tokenkit/tokenkit.go:60
↓ 1 callers
Function
claudeWebSearchDiagnostics
(index int, search *WebSearch)
relaykit/relayconvert/internal/toolconv/encode.go:1449
↓ 1 callers
Function
cleanFilters
( filters: T )
web/src/features/dashboard/lib/filters.ts:62
↓ 1 callers
Function
cleanGeminiFunctionParametersShallow
(params interface{})
relaykit/relayconvert/internal/shared/gemini/schema.go:126
↓ 1 callers
Function
cleanGeminiFunctionParametersWithDepth
(params interface{}, depth int)
relaykit/relayconvert/internal/shared/gemini/schema.go:70
↓ 1 callers
Function
cleanupExpiredMetrics
(retentionDays int)
pkg/perf_metrics/flush.go:69
↓ 1 callers
Function
clearAllCache
()
web/src/features/system-settings/general/channel-affinity/api.ts:34
↓ 1 callers
Function
clearConnectionCache
()
web/src/features/models/hooks/use-model-deployment-settings.ts:49
↓ 1 callers
Function
clearLocalUiCache
()
web/src/lib/frontend-cache.ts:51
↓ 1 callers
Function
clearPlaygroundData
()
web/src/features/playground/lib/storage/storage.ts:406
↓ 1 callers
Function
clearPreferredOwnerTables
(t *testing.T)
model/model_owner_test.go:12
↓ 1 callers
Function
clearRuleCache
( ruleName: string )
web/src/features/system-settings/general/channel-affinity/api.ts:44
↓ 1 callers
Function
clearSessionHintCookie
(c *gin.Context)
service/auth_session.go:390
↓ 1 callers
Function
clickHouseLogTTLDays
()
model/main.go:422
↓ 1 callers
Function
clickHouseLogTableHasTTL
()
model/main.go:490
↓ 1 callers
Function
cloneAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:329
↓ 1 callers
Function
cloneFloatPtr
(v *float64)
controller/ratio_sync.go:974
↓ 1 callers
Function
cloneGinH
(src gin.H)
setting/ratio_setting/exposed_cache.go:28
↓ 1 callers
Function
cloneHeaderNavDefault
()
web/src/features/system-settings/maintenance/config.ts:99
↓ 1 callers
Function
cloneHeaderNavDefaults
()
web/src/lib/nav-modules.ts:51
↓ 1 callers
Function
cloneJSONValue
Already-parsed JSON and the engine's plain exported values do not need another encode/decode pass. Copy containers for host-side edits, preserving the
relay/channel/task/jsplugin/adaptor.go:2214
↓ 1 callers
Function
cloneRequestHeaders
(c *gin.Context)
relay/common/relay_info.go:691
↓ 1 callers
Function
cloneRequestInput
(src billingexpr.RequestInput)
relay/helper/billing_expr_request.go:104
↓ 1 callers
Function
cloneSidebarDefault
()
web/src/features/system-settings/maintenance/config.ts:129
↓ 1 callers
Function
cloneTemplate
(template: T)
web/src/features/system-settings/general/channel-affinity/constants.ts:132
↓ 1 callers
Function
close
()
web/src/features/security/components/dialogs/access-token-edit-dialog.tsx:86
↓ 1 callers
Function
close
()
web/src/features/security/components/dialogs/access-token-create-dialog.tsx:69
↓ 1 callers
Function
close
(open: boolean)
web/src/features/models/components/drawers/model-mutate-drawer.tsx:235
↓ 1 callers
Function
close
(open: boolean)
web/src/features/models/components/dialogs/vendor-mutate-dialog.tsx:134
↓ 1 callers
Method
close
()
relay/channel/providerplugin/chain.go:40
↓ 1 callers
Function
closeDB
(db *gorm.DB)
model/main.go:700
↓ 1 callers
Function
closeIdleConnections
(rt http.RoundTripper)
service/http_transport_sharded.go:89
↓ 1 callers
Function
closeWebSocket
closeWebSocket sends a normal close and closes the connection; the next read ends the session.
relay/channel/providerplugin/stream.go:459
↓ 1 callers
Function
codeBytes
(value uint32, length int)
relay/requestplugin/pdf.go:491
↓ 1 callers
Function
codeValue
(code []byte)
relay/requestplugin/pdf.go:483
↓ 1 callers
Function
coerceTestUsage
(usageAny any, isStream bool, estimatePromptTokens int)
controller/channel-test.go:615
↓ 1 callers
Function
cohereHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/cohere/relay-cohere.go:177
↓ 1 callers
Function
cohereRerankHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/cohere/relay-cohere.go:219
↓ 1 callers
Function
cohereStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/cohere/relay-cohere.go:83
↓ 1 callers
Function
collapseRepeatedSectionSnapshots
(text: string)
web/src/features/playground/lib/storage/storage.ts:199
↓ 1 callers
Function
collectContent
(fields, path, content)
plugins/tasks/request-redact/plugin.js:235
↓ 1 callers
Function
collectDirtyValues
( dirtyFields: Partial<FieldNamesMarkedBoolean<TFieldValues>> | boolean, values: unknown, parentKey?: st
web/src/features/system-settings/hooks/use-settings-form.ts:69
↓ 1 callers
Function
collectDisallowedStatusCodeRedirects
( statusCodeMappingStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:65
← previous
next →
6,001–6,100 of 15,409, ranked by callers