MCPcopy Create free account

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

Functions15,409 in github.com/QuantumNous/new-api

↓ 1 callersFunctionchannel
(type: number, setting = '')
web/src/features/channels/components/__tests__/channel-test-dialog-endpoints.test.tsx:53
↓ 1 callersFunctionchannel
(name: string)
web/src/features/channels/components/__tests__/table-refresh.test.tsx:47
↓ 1 callersFunctionchannelAffinityUsageCacheStatsLock
(key string)
service/channel_affinity.go:1017
↓ 1 callersFunctionchannelConfigurationBlockClassName
( status: ChannelConfigurationStatus, className?: string )
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:384
↓ 1 callersFunctionchannelGroupFilterCondition
()
model/channel.go:155
↓ 1 callersFunctionchannelGroupFilterPattern
(group string)
model/channel.go:162
↓ 1 callersFunctionchannelIDsFromChannels
(channels []*model.Channel)
controller/channel.go:80
↓ 1 callersFunctionchannelPluginHasHook
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 callersFunctionchannelSelectCompatiblePluginSource
(key string, channelType, compatibleType int)
service/channel_select_test.go:149
↓ 1 callersFunctionchannelTypeOptionsForTaskPluginBind
( canBindTaskPlugin: boolean )
web/src/features/channels/constants.ts:215
↓ 1 callersFunctionchannelVerification
()
web/src/features/channels/hooks/__tests__/channel-key-disclosure.test.tsx:51
↓ 1 callersFunctionchartGraphicDatum
(value: unknown)
web/src/features/dashboard/components/flow/flow-charts.tsx:194
↓ 1 callersFunctionchatCreatedAt
(created any)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:288
↓ 1 callersMethodchatTool
()
relaykit/relayconvert/internal/toolconv/encode.go:276
↓ 1 callersFunctionchatToolCallToResponsesOutput
(toolCall dto.ToolCallRequest, responseID string, index int, status string, tools *convmeta.ResponsesToolState
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:221
↓ 1 callersFunctioncheckAndSendSubscriptionQuotaNotify
(relayInfo *relaycommon.RelayInfo)
service/quota.go:507
↓ 1 callersFunctioncheckExpressionTypes
(ast: ExpressionNode)
web/src/features/pricing/lib/billing-expression/parser.ts:351
↓ 1 callersFunctioncheckFormEffects
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 callersFunctioncheckIfChatComplete
(a *Adaptor, c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/coze/relay-coze.go:216
↓ 1 callersFunctioncheckMemoryLimit
(userId int, notifyType string)
service/notify-limit.go:73
↓ 1 callersFunctioncheckMjTaskNeedUpdate
(oldTask *model.Midjourney, newTask dto.MidjourneyDto)
controller/midjourney.go:226
↓ 1 callersFunctioncheckOverflow
(textContainer: HTMLDivElement | null)
web/src/components/long-text.tsx:96
↓ 1 callersFunctioncheckReadmeTokens
Raw HTML and images never reach the page, nested content included.
web/src/features/task-plugins/lib/plugin-readme.ts:45
↓ 1 callersFunctioncheckRedisLimit
(userId int, notifyType string)
service/notify-limit.go:57
↓ 1 callersFunctioncheckSampleValue
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 callersFunctioncheckServerAvailability
(port, maxRetries = 30, retryDelay = 1000)
electron/main.js:178
↓ 1 callersFunctioncheckSingleCondition
(doc *ojson.Doc, contextJSON string, condition *ConditionOperation)
relay/common/override.go:670
↓ 1 callersFunctioncheckStreamEventsGolden
(t *testing.T, name string, events []any)
relaykit/relayconvert/golden_test.go:75
↓ 1 callersFunctioncheckSystemPerformance
checkSystemPerformance 检查系统性能是否超过阈值
middleware/performance.go:41
↓ 1 callersFunctioncheckTaskPluginRouteIntent
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 callersFunctioncheckWriter
(writer io.Writer)
common/custom-event.go:27
↓ 1 callersFunctionchildOf
(value gjson.Result, token string)
relay/requestplugin/record.go:135
↓ 1 callersFunctionchineseTranslator
()
web/src/features/usage-logs/lib/__tests__/export.test.ts:53
↓ 1 callersFunctionchooseAllFields
(checked: boolean)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:274
↓ 1 callersFunctionchooseField
( name: string, field: MetadataSyncField, checked: boolean )
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:263
↓ 1 callersFunctionchooseMode
( user: ReturnType<typeof userEvent.setup>, dialog: HTMLElement, mode: string )
web/src/features/task-plugins/__tests__/request-plugin-config-form.test.tsx:192
↓ 1 callersFunctionchooseModels
(items: MetadataSyncCandidate[], checked: boolean)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:241
↓ 1 callersFunctionchooseSample
(index: number)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:620
↓ 1 callersFunctioncitedTextFromAnnotation
(text string, citation map[string]any)
relaykit/relayconvert/internal/oai_chat/citations.go:56
↓ 1 callersFunctionclampPercent
(value: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:168
↓ 1 callersFunctionclassifyFailure
(local bool, code, errorType string, status int)
pkg/perf_metrics/outcome.go:95
↓ 1 callersFunctionclassifyWindowByDuration
( windowData?: CodexRateLimitWindow | null )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:284
↓ 1 callersFunctionclaudeDefaultsMeta
(defaultMaxTokens func(string) int)
relaykit/relayconvert/claude_default_max_tokens_test.go:204
↓ 1 callersFunctionclaudeEffortDiagnostics
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 callersFunctionclaudeHostedCallOutputType
(blockType string, name string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:150
↓ 1 callersFunctionclaudeHostedPositions
(items []positionedClaudeBlocks)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:658
↓ 1 callersFunctionclaudeHostedResultErrorCode
(content any, fallback string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:181
↓ 1 callersFunctionclaudeHostedResultOutputType
(blockType string)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go:166
↓ 1 callersFunctionclaudeImageFits
(w, h, maxEdge, maxTokens int)
tokenkit/image.go:220
↓ 1 callersFunctionclaudeMessagesToResponsesInput
(messages []dto.ClaudeMessage)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:132
↓ 1 callersFunctionclaudeResizedSize
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 callersFunctionclaudeSystemToResponsesInstructions
(request *dto.ClaudeRequest)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:108
↓ 1 callersFunctionclaudeToChatStreamState
(info *relaycommon.RelayInfo)
relay/channel/claude/relay-claude.go:171
↓ 1 callersFunctionclaudeToolChoiceToResponses
(value any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:248
↓ 1 callersFunctionclaudeToolResultToChat
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 callersFunctionclaudeToolResultToResponsesOutput
(content any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:285
↓ 1 callersFunctionclaudeToolsToResponsesTools
(value any)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:224
↓ 1 callersFunctionclaudeUsesOpus47Tokenizer
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 callersFunctionclaudeWebSearchDiagnostics
(index int, search *WebSearch)
relaykit/relayconvert/internal/toolconv/encode.go:1449
↓ 1 callersFunctioncleanFilters
( filters: T )
web/src/features/dashboard/lib/filters.ts:62
↓ 1 callersFunctioncleanGeminiFunctionParametersShallow
(params interface{})
relaykit/relayconvert/internal/shared/gemini/schema.go:126
↓ 1 callersFunctioncleanGeminiFunctionParametersWithDepth
(params interface{}, depth int)
relaykit/relayconvert/internal/shared/gemini/schema.go:70
↓ 1 callersFunctioncleanupExpiredMetrics
(retentionDays int)
pkg/perf_metrics/flush.go:69
↓ 1 callersFunctionclearAllCache
()
web/src/features/system-settings/general/channel-affinity/api.ts:34
↓ 1 callersFunctionclearConnectionCache
()
web/src/features/models/hooks/use-model-deployment-settings.ts:49
↓ 1 callersFunctionclearLocalUiCache
()
web/src/lib/frontend-cache.ts:51
↓ 1 callersFunctionclearPlaygroundData
()
web/src/features/playground/lib/storage/storage.ts:406
↓ 1 callersFunctionclearPreferredOwnerTables
(t *testing.T)
model/model_owner_test.go:12
↓ 1 callersFunctionclearRuleCache
( ruleName: string )
web/src/features/system-settings/general/channel-affinity/api.ts:44
↓ 1 callersFunctionclearSessionHintCookie
(c *gin.Context)
service/auth_session.go:390
↓ 1 callersFunctionclickHouseLogTTLDays
()
model/main.go:422
↓ 1 callersFunctionclickHouseLogTableHasTTL
()
model/main.go:490
↓ 1 callersFunctioncloneAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:329
↓ 1 callersFunctioncloneFloatPtr
(v *float64)
controller/ratio_sync.go:974
↓ 1 callersFunctioncloneGinH
(src gin.H)
setting/ratio_setting/exposed_cache.go:28
↓ 1 callersFunctioncloneHeaderNavDefault
()
web/src/features/system-settings/maintenance/config.ts:99
↓ 1 callersFunctioncloneHeaderNavDefaults
()
web/src/lib/nav-modules.ts:51
↓ 1 callersFunctioncloneJSONValue
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 callersFunctioncloneRequestHeaders
(c *gin.Context)
relay/common/relay_info.go:691
↓ 1 callersFunctioncloneRequestInput
(src billingexpr.RequestInput)
relay/helper/billing_expr_request.go:104
↓ 1 callersFunctioncloneSidebarDefault
()
web/src/features/system-settings/maintenance/config.ts:129
↓ 1 callersFunctioncloneTemplate
(template: T)
web/src/features/system-settings/general/channel-affinity/constants.ts:132
↓ 1 callersFunctionclose
()
web/src/features/security/components/dialogs/access-token-edit-dialog.tsx:86
↓ 1 callersFunctionclose
()
web/src/features/security/components/dialogs/access-token-create-dialog.tsx:69
↓ 1 callersFunctionclose
(open: boolean)
web/src/features/models/components/drawers/model-mutate-drawer.tsx:235
↓ 1 callersFunctionclose
(open: boolean)
web/src/features/models/components/dialogs/vendor-mutate-dialog.tsx:134
↓ 1 callersMethodclose
()
relay/channel/providerplugin/chain.go:40
↓ 1 callersFunctioncloseDB
(db *gorm.DB)
model/main.go:700
↓ 1 callersFunctioncloseIdleConnections
(rt http.RoundTripper)
service/http_transport_sharded.go:89
↓ 1 callersFunctioncloseWebSocket
closeWebSocket sends a normal close and closes the connection; the next read ends the session.
relay/channel/providerplugin/stream.go:459
↓ 1 callersFunctioncodeBytes
(value uint32, length int)
relay/requestplugin/pdf.go:491
↓ 1 callersFunctioncodeValue
(code []byte)
relay/requestplugin/pdf.go:483
↓ 1 callersFunctioncoerceTestUsage
(usageAny any, isStream bool, estimatePromptTokens int)
controller/channel-test.go:615
↓ 1 callersFunctioncohereHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/cohere/relay-cohere.go:177
↓ 1 callersFunctioncohereRerankHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/cohere/relay-cohere.go:219
↓ 1 callersFunctioncohereStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/cohere/relay-cohere.go:83
↓ 1 callersFunctioncollapseRepeatedSectionSnapshots
(text: string)
web/src/features/playground/lib/storage/storage.ts:199
↓ 1 callersFunctioncollectContent
(fields, path, content)
plugins/tasks/request-redact/plugin.js:235
↓ 1 callersFunctioncollectDirtyValues
( dirtyFields: Partial<FieldNamesMarkedBoolean<TFieldValues>> | boolean, values: unknown, parentKey?: st
web/src/features/system-settings/hooks/use-settings-form.ts:69
↓ 1 callersFunctioncollectDisallowedStatusCodeRedirects
( statusCodeMappingStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:65
← previousnext →6,001–6,100 of 15,409, ranked by callers