MCPcopy Create free account

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

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

↓ 1,967 callersMethodEqual
(other taskSnapshot)
model/task.go:545
↓ 999 callersFunctiont
(key: string)
web/src/features/system-settings/models/__tests__/group-auto-limit-validation.test.ts:23
↓ 746 callersMethodRun
(ctx context.Context, task *model.SystemTask, runnerID string)
service/system_task.go:36
↓ 695 callersMethodContains
(item T)
types/set.go:21
↓ 692 callersFunctioncn
(...inputs: ClassValue[])
web/src/lib/utils.ts:22
↓ 685 callersMethodSet
(key K, value V)
types/rw_map.go:40
↓ 556 callersMethodString
()
relay/channel/volcengine/protocols.go:55
↓ 442 callersMethodGet
(key K)
types/rw_map.go:33
↓ 427 callersMethodLen
()
types/rw_map.go:70
↓ 360 callersMethodNewReader
NewReader returns an independent reader positioned at the start of the stored payload. Each call returns a reader with its own cursor, so callers (e.g
common/body_storage.go:33
↓ 345 callersMethodEmpty
()
relaykit/relayconvert/internal/toolconv/model.go:102
↓ 314 callersFunctionLogText
LogText formats a server log line in the language of DEFAULT_LANGUAGE. format is the English text and the key of its translation in log_text.zh-CN.jso
common/log_text.go:30
↓ 292 callersMethodpush
push queues an admitted job without waiting; a full queue drops it.
relay/requestplugin/report.go:479
↓ 285 callersMethodMarshal
(v any)
relaykit/relayconvert/kitutil/json.go:18
↓ 284 callersFunctionMarshal
(v any)
common/json.go:94
↓ 276 callersFunctionUnmarshal
(data []byte, v any)
common/json.go:47
↓ 274 callersMethodAdd
(item T)
types/set.go:13
↓ 273 callersMethodUnmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json.go:19
↓ 265 callersMethodUnlock
()
controller/user.go:1267
↓ 253 callersMethodBytes
Bytes returns read-only contents. Store edits in a new BodyStorage; decoded strings and raw JSON may still refer to these bytes.
common/body_storage.go:22
↓ 215 callersMethodget
(rawProxyURL string, policy HTTPTransportPolicy)
service/http_client.go:230
↓ 192 callersMethodRegister
(source string, options Options)
pkg/jsplugin/registry.go:468
↓ 191 callersMethodReadAll
()
types/rw_map.go:60
↓ 187 callersFunctionhandleServerError
( error: unknown, fallbackMessage?: string, presentation?: { title: string; description?: string } )
web/src/lib/handle-server-error.ts:34
↓ 187 callersMethodparse
()
web/src/features/pricing/lib/billing-expression/parser.ts:220
↓ 177 callersMethodfind
find returns the distinct keywords in text, as the list spells them, in the order they first end in text; at most limit.
pkg/jsplugin/keywords.go:108
↓ 177 callersFunctionrender
()
web/src/components/turnstile.tsx:45
↓ 167 callersMethodError
()
controller/oauth.go:595
↓ 158 callersMethodCount
Count returns the deduplicated completed image output count before commit capping.
relay/common/tool_usage.go:188
↓ 154 callersFunctionApiError
ApiError responds with err's text. When err is or wraps a *Message, the response also carries message_key and message_params for the web console.
common/gin.go:279
↓ 150 callersMethodhas
(name string)
pkg/jsplugin/config_schema.go:728
↓ 146 callersMethodUpdate
()
model/task.go:571
↓ 143 callersFunctionNewMessage
(key string, params ...map[string]any)
common/message.go:20
↓ 142 callersFunctionSysLog
(s string)
common/sys_log.go:41
↓ 137 callersMethodQuery
(params QueryParams)
pkg/perf_metrics/types.go:7
↓ 134 callersMethodpost
(t *testing.T, path, body string)
router/provider_plugin_relay_test.go:192
↓ 131 callersFunctionUnmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json.go:58
↓ 129 callersMethodHeader
()
router/plugin-router.go:536
↓ 124 callersFunctionGetTimestamp
()
common/utils.go:239
↓ 120 callersFunctionMarshal
(v any)
relaykit/relayconvert/kitutil/json.go:80
↓ 119 callersFunctionApiSuccess
(c *gin.Context, data any)
common/gin.go:325
↓ 119 callersMethodreset
reset clears the per-chunk stopped flag so the object can be reused.
relay/helper/stream_result.go:57
↓ 113 callersMethodClose
()
middleware/gzip.go:19
↓ 111 callersMethodDo
(req *HTTPRequest)
pkg/ionet/types.go:16
↓ 111 callersFunctionLogError
(ctx context.Context, msg string)
logger/logger.go:87
↓ 110 callersMethodDelete
()
model/user.go:946
↓ 109 callersMethodInit
Init IsStream bool
relay/channel/adapter.go:20
↓ 108 callersMethodError
()
model/vendor_management.go:22
↓ 102 callersMethodError
()
oauth/types.go:47
↓ 101 callersFunctionApiErrorT
ApiErrorT responds with a web console message; key is the English source text, which the web console translates with params.
common/gin.go:302
↓ 99 callersMethodGeneration
()
pkg/jsplugin/registry.go:975
↓ 99 callersFunctionLogDebug
LogDebug formats msg with common.LogText only when debug logging is on, so callers pass the format and its arguments instead of a formatted string.
logger/logger.go:93
↓ 96 callersMethodClone
Clone preserves presence information without sharing mutable usage fields.
relaykit/dto/openai_response.go:307
↓ 96 callersFunctionNewRegistry
()
pkg/jsplugin/registry.go:448
↓ 96 callersMethodclear
clear releases the whole request chain when its key expires.
common/rate-limit.go:56
↓ 92 callersFunctioncancel
()
web/src/features/system-update/api.ts:38
↓ 92 callersMethodreplace
replace stores the client body with the stage's patched body: JSON as it is, a form view written back into the form body.
relay/requestplugin/relay.go:260
↓ 91 callersMethodStatus
()
relay/requestplugin/reply.go:868
↓ 89 callersMethodHeader
()
controller/responses_websocket.go:61
↓ 87 callersFunctionSysError
(s string)
common/sys_log.go:48
↓ 86 callersMethodClose
()
controller/passkey_test.go:763
↓ 86 callersMethodobject
object reads one object the table places in the file, which the library may read later: its values within maxPDFObjectValues.
relay/requestplugin/pdf.go:1205
↓ 86 callersFunctionsetupSecurityEnrollmentTest
(t *testing.T)
controller/security_enrollment_test.go:44
↓ 85 callersMethodCall
Call invokes one named module export and returns its JSON-compatible value.
pkg/jsplugin/engine.go:339
↓ 84 callersMethodUnregister
(key string)
pkg/jsplugin/registry.go:927
↓ 83 callersMethodExists
(prefix string, path string)
common/embed-file-system.go:18
↓ 83 callersFunctionNewError
(err error, errorCode ErrorCode, ops ...NewAPIErrorOptions)
relaykit/types/error.go:252
↓ 81 callersFunctionclose
(open: boolean)
web/src/features/task-plugins/components/upload-dialog.tsx:152
↓ 79 callersMethodCopy
()
relaykit/dto/openai_response.go:191
↓ 79 callersMethodWriteString
(text string)
relay/requestplugin/reply.go:855
↓ 78 callersMethodfrom
( error: unknown, fallback = 'Verification failed. Please try again.' )
web/src/lib/secure-verification.ts:38
↓ 78 callersFunctiontruncateTables
(t *testing.T)
model/task_cas_test.go:70
↓ 76 callersFunctionrequireServerSuccess
(response: T)
web/src/lib/server-error-message.ts:237
↓ 75 callersFunctionApplyParamOverride
(jsonData []byte, paramOverride map[string]any, conditionContext map[string]any)
relay/common/override.go:162
↓ 73 callersMethodstring
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/runtime.ts:325
↓ 72 callersMethodNext
(fromServer []byte, more bool)
common/email_ntlm_auth.go:51
↓ 72 callersMethodScan
(val any)
model/task.go:90
↓ 70 callersMethodError
()
relay/common/override.go:100
↓ 69 callersMethodClose
()
relay/channel/task/jsplugin/adaptor.go:642
↓ 69 callersFunctionLogWarn
(ctx context.Context, msg string, args ...any)
logger/logger.go:80
↓ 68 callersMethodGet
Get 获取指定配置模块
setting/config/config.go:35
↓ 67 callersFunctionUnmarshalJsonStr
(data string, v any)
common/json.go:57
↓ 65 callersFunctionCompilePlugin
CompilePlugin validates a plugin without publishing it. Callers that refresh multiple plugins use this together with ReplaceOverrides so readers obser
pkg/jsplugin/registry.go:509
↓ 62 callersFunctionNew
(plugin *pluginruntime.LoadedPlugin)
relay/channel/task/jsplugin/adaptor.go:162
↓ 62 callersFunctionsecurityEnrollmentRequest
(method, path, body, proof string, identity service.AuthIdentity, handler gin.HandlerFunc)
controller/security_enrollment_test.go:118
↓ 59 callersFunctionDecodeJson
(reader io.Reader, v any)
common/json.go:61
↓ 59 callersFunctionNewOpenAIError
(err error, errorCode ErrorCode, statusCode int, ops ...NewAPIErrorOptions)
relaykit/types/error.go:274
↓ 59 callersFunctioncreateServerError
(value: unknown, fallback?: string)
web/src/lib/server-error-message.ts:230
↓ 59 callersFunctiontruncate
--------------------------------------------------------------------------- Seed helpers -------------------------------------------------------------
service/task_billing_test.go:74
↓ 58 callersFunctionErrOptionWithSkipRetry
()
relaykit/types/error.go:389
↓ 58 callersFunctioncleanup
()
web/src/features/auth/lib/oauth-popup.ts:66
↓ 57 callersMethodGet
(platform string)
pkg/jsplugin/registry.go:839
↓ 57 callersMethodadd
(sample Sample)
pkg/perf_metrics/types.go:114
↓ 56 callersMethodClose
Close ends the session's plugin work and puts its steps and record on info, where the consume log reads them. Events after it pass untouched.
relay/requestplugin/socket.go:442
↓ 56 callersFunctionGetChannelById
GetChannelById loads a channel directly from the database, bypassing the in-memory channel cache. WARNING: do NOT call this on request hot paths (mid
model/channel.go:491
↓ 56 callersFunctionGetUserById
(id int, selectAll bool)
model/user.go:507
↓ 56 callersFunctionassertJSONEqual
(t *testing.T, want, got string)
relay/common/override_test.go:2665
↓ 55 callersMethodDone
Done signals that the handler has finished processing normally (e.g., Dify "message_end"). The stream stops after this chunk.
relay/helper/stream_result.go:45
↓ 55 callersFunctionInitChannelCache
()
model/channel_cache.go:31
↓ 55 callersMethodWriteHeader
(code int)
relay/requestplugin/reply.go:806
next →1–100 of 15,409, ranked by callers