Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
12,901 in github.com/QuantumNous/new-api
⨍
Functions
12,901
◇
Types & classes
1,891
↓ 1,405 callers
Method
Equal
(other taskSnapshot)
model/task.go:512
↓ 910 callers
Function
t
(key: string)
web/src/features/system-settings/models/__tests__/group-auto-limit-validation.test.ts:23
↓ 671 callers
Function
cn
(...inputs: ClassValue[])
web/src/lib/utils.ts:22
↓ 496 callers
Method
Contains
(item T)
types/set.go:21
↓ 493 callers
Method
Set
(key K, value V)
types/rw_map.go:40
↓ 439 callers
Method
Run
(ctx context.Context, task *model.SystemTask, runnerID string)
service/system_task.go:36
↓ 393 callers
Method
String
()
relay/channel/volcengine/protocols.go:55
↓ 258 callers
Method
Len
()
types/rw_map.go:70
↓ 246 callers
Method
Get
(key K)
types/rw_map.go:33
↓ 241 callers
Method
NewReader
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:29
↓ 233 callers
Method
Empty
()
relaykit/relayconvert/internal/toolconv/model.go:97
↓ 228 callers
Function
Unmarshal
(data []byte, v any)
common/json.go:42
↓ 226 callers
Method
Unmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json.go:19
↓ 211 callers
Method
Marshal
(v any)
relaykit/relayconvert/kitutil/json.go:18
↓ 208 callers
Function
Marshal
(v any)
common/json.go:66
↓ 197 callers
Method
get
(rawProxyURL string, policy HTTPTransportPolicy)
service/http_client.go:222
↓ 191 callers
Method
Unlock
()
controller/user.go:1216
↓ 184 callers
Function
handleServerError
( error: unknown, fallbackMessage?: string, presentation?: { title: string; description?: string } )
web/src/lib/handle-server-error.ts:34
↓ 176 callers
Method
Bytes
Bytes 获取全部内容
common/body_storage.go:18
↓ 174 callers
Method
Add
(item T)
types/set.go:13
↓ 164 callers
Method
parse
()
web/src/features/pricing/lib/billing-expression/parser.ts:220
↓ 155 callers
Method
Error
()
controller/oauth.go:604
↓ 139 callers
Method
ReadAll
()
types/rw_map.go:60
↓ 137 callers
Method
Register
(source string, options Options)
pkg/jsplugin/registry.go:265
↓ 136 callers
Function
ApiError
(c *gin.Context, err error)
common/gin.go:199
↓ 135 callers
Function
SysLog
(s string)
common/sys_log.go:17
↓ 132 callers
Method
Count
Count returns the deduplicated completed image output count before commit capping.
relay/common/tool_usage.go:138
↓ 120 callers
Function
render
()
web/src/components/turnstile.tsx:45
↓ 112 callers
Method
Query
(params QueryParams)
pkg/perf_metrics/types.go:7
↓ 111 callers
Function
LogError
(ctx context.Context, msg string)
logger/logger.go:87
↓ 109 callers
Method
Update
()
model/task.go:538
↓ 108 callers
Function
ApiSuccess
(c *gin.Context, data any)
common/gin.go:213
↓ 107 callers
Function
Unmarshal
(data []byte, v any)
relaykit/relayconvert/kitutil/json.go:58
↓ 105 callers
Method
reset
reset clears the per-chunk stopped flag so the object can be reused.
relay/helper/stream_result.go:55
↓ 100 callers
Function
GetTimestamp
()
common/utils.go:264
↓ 100 callers
Function
Marshal
(v any)
relaykit/relayconvert/kitutil/json.go:70
↓ 98 callers
Method
Error
()
model/vendor_management.go:22
↓ 96 callers
Function
LogDebug
(ctx context.Context, msg string, args ...any)
logger/logger.go:91
↓ 92 callers
Method
Error
()
oauth/types.go:38
↓ 91 callers
Method
Do
(req *HTTPRequest)
pkg/ionet/types.go:16
↓ 81 callers
Method
Delete
()
model/user.go:956
↓ 81 callers
Function
setupSecurityEnrollmentTest
(t *testing.T)
controller/security_enrollment_test.go:42
↓ 75 callers
Function
NewRegistry
()
pkg/jsplugin/registry.go:245
↓ 74 callers
Method
Close
()
middleware/gzip.go:19
↓ 74 callers
Method
Init
Init IsStream bool
relay/channel/adapter.go:19
↓ 74 callers
Function
SysError
(s string)
common/sys_log.go:24
↓ 73 callers
Method
from
( error: unknown, fallback = 'Verification failed. Please try again.' )
web/src/lib/secure-verification.ts:37
↓ 73 callers
Method
string
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/runtime.ts:325
↓ 72 callers
Function
truncateTables
(t *testing.T)
model/task_cas_test.go:69
↓ 71 callers
Method
Header
()
router/plugin-router.go:428
↓ 71 callers
Function
NewError
(err error, errorCode ErrorCode, ops ...NewAPIErrorOptions)
relaykit/types/error.go:244
↓ 71 callers
Method
clear
clear releases the whole request chain when its key expires.
common/rate-limit.go:56
↓ 69 callers
Function
ApiErrorMsg
(c *gin.Context, msg string)
common/gin.go:206
↓ 69 callers
Function
ApplyParamOverride
(jsonData []byte, paramOverride map[string]any, conditionContext map[string]any)
relay/common/override.go:146
↓ 69 callers
Function
cancel
()
web/src/features/system-update/api.ts:38
↓ 68 callers
Method
Copy
()
relaykit/dto/openai_response.go:191
↓ 67 callers
Method
Close
()
controller/passkey_test.go:757
↓ 66 callers
Method
Next
(fromServer []byte, more bool)
common/email_ntlm_auth.go:51
↓ 65 callers
Function
requireServerSuccess
(response: T)
web/src/lib/server-error-message.ts:208
↓ 64 callers
Method
Generation
()
pkg/jsplugin/registry.go:629
↓ 63 callers
Method
Header
()
controller/responses_websocket.go:62
↓ 63 callers
Method
Open
(name string)
common/embed-file-system.go:26
↓ 62 callers
Method
Close
()
relay/channel/minimax/adaptor_test.go:127
↓ 62 callers
Method
Error
()
relay/common/override.go:84
↓ 61 callers
Function
securityEnrollmentRequest
(method, path, body, proof string, identity service.AuthIdentity, handler gin.HandlerFunc)
controller/security_enrollment_test.go:105
↓ 58 callers
Function
LogWarn
(ctx context.Context, msg string, args ...any)
logger/logger.go:80
↓ 58 callers
Method
Scan
(val any)
model/task.go:89
↓ 57 callers
Function
assertJSONEqual
(t *testing.T, want, got string)
relay/common/override_test.go:2399
↓ 56 callers
Function
NewOpenAIError
(err error, errorCode ErrorCode, statusCode int, ops ...NewAPIErrorOptions)
relaykit/types/error.go:266
↓ 56 callers
Function
createServerError
(value: unknown, fallback?: string)
web/src/lib/server-error-message.ts:201
↓ 55 callers
Function
truncate
--------------------------------------------------------------------------- Seed helpers -------------------------------------------------------------
service/task_billing_test.go:70
↓ 54 callers
Method
Get
Get 获取指定配置模块
setting/config/config.go:35
↓ 54 callers
Function
onChange
()
web/src/hooks/use-mobile.ts:28
↓ 53 callers
Method
Call
Call invokes one named module export and returns its JSON-compatible value.
pkg/jsplugin/engine.go:298
↓ 53 callers
Function
UnmarshalJsonStr
(data string, v any)
common/json.go:46
↓ 53 callers
Method
WriteString
(s string)
relay/channel/openai/image_stream_test.go:306
↓ 52 callers
Function
close
(open: boolean)
web/src/features/task-plugins/components/upload-dialog.tsx:141
↓ 51 callers
Function
CloseResponseBodyGracefully
(httpResponse *http.Response)
service/http.go:16
↓ 50 callers
Function
GetUserById
(id int, selectAll bool)
model/user.go:521
↓ 50 callers
Method
boolean
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/runtime.ts:301
↓ 49 callers
Function
ExprHashString
ExprHashString returns the SHA-256 hex digest of an expression string.
pkg/billingexpr/types.go:107
↓ 49 callers
Function
Interface2String
(inter any)
relaykit/relayconvert/kitutil/value.go:16
↓ 49 callers
Method
add
(sample Sample)
pkg/perf_metrics/types.go:111
↓ 48 callers
Function
ErrOptionWithSkipRetry
()
relaykit/types/error.go:381
↓ 46 callers
Method
Exists
(prefix string, path string)
common/embed-file-system.go:18
↓ 46 callers
Function
LogInfo
(ctx context.Context, msg string)
logger/logger.go:76
↓ 45 callers
Function
RunExpr
RunExpr compiles (with cache) and executes an expression string. The environment exposes: - p, c — prompt / completion tokens (auto-exclud
pkg/billingexpr/run.go:26
↓ 45 callers
Method
Unregister
(key string)
pkg/jsplugin/registry.go:581
↓ 45 callers
Method
Write
(p []byte)
relay/channel/openai/image_stream_test.go:298
↓ 45 callers
Function
lockForUpdate
lockForUpdate makes the next query emit SELECT ... FOR UPDATE so the matched rows stay locked until the surrounding transaction ends. GORM v2 silentl
model/locking.go:20
↓ 44 callers
Method
Done
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:44
↓ 44 callers
Method
delete
(identity *AuthSessionIdentity)
model/user.go:965
↓ 44 callers
Function
writeSecurityOperationError
writeSecurityOperationError only exposes known, fixed business messages. Unexpected errors retain their cause for the existing server-side auth logger
controller/secure_verification.go:38
↓ 43 callers
Function
DecodeJson
(reader io.Reader, v any)
common/json.go:50
↓ 43 callers
Function
cleanup
()
web/src/features/auth/lib/oauth-popup.ts:66
↓ 43 callers
Function
seedUser
(t *testing.T, id int, quota int)
service/task_billing_test.go:86
↓ 42 callers
Function
SetContextKey
(c *gin.Context, key constant.ContextKey, value any)
common/gin.go:157
↓ 41 callers
Method
GetEstimatePromptTokens
()
relaykit/relayconvert/convmeta/meta.go:35
↓ 41 callers
Function
NewErrorWithStatusCode
(err error, errorCode ErrorCode, statusCode int, ops ...NewAPIErrorOptions)
relaykit/types/error.go:299
↓ 40 callers
Function
New
(plugin *pluginruntime.LoadedPlugin)
relay/channel/task/jsplugin/adaptor.go:92
next →
1–100 of 12,901, ranked by callers