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
↓ 5 callers
Function
logsAppender
(logs *[]string)
controller/plugin_protocol_test.go:1568
↓ 5 callers
Method
member
(name string)
pkg/requestpatch/patch.go:521
↓ 5 callers
Function
mergeModelNames
(base []string, appended []string)
controller/channel_upstream_update.go:110
↓ 5 callers
Method
message
message takes one event of a WebSocket stream: a whole JSON message the session already decoded.
relay/requestplugin/reply.go:1052
↓ 5 callers
Method
messageID
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:852
↓ 5 callers
Function
modelPricingValues
(values map[string]map[string]any, name string)
model/model_pricing_config.go:128
↓ 5 callers
Function
mustAdvancedCustomRawMessage
(t *testing.T, value any)
relay/channel/advancedcustom/adaptor_test.go:1145
↓ 5 callers
Function
mustResponsesEventsFromChatChunk
(t *testing.T, state *ChatToResponsesStreamState, chunk *dto.ChatCompletionsStreamResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:576
↓ 5 callers
Function
newAwsInvokeError
(requestContext context.Context, err error, operation string)
relay/channel/aws/relay-aws.go:51
↓ 5 callers
Function
newFakeSMTPServer
(t *testing.T)
common/email_test.go:35
↓ 5 callers
Function
newPinRetryContext
()
controller/channel_pin_retry_test.go:102
↓ 5 callers
Function
newRealtimeSession
(t *testing.T)
relay/requestplugin/socket_test.go:54
↓ 5 callers
Function
newSecurityMailbox
Use a real local SMTP boundary so delivery, failure and code handling are exercised without exporting test-only mail hooks from production packages.
controller/security_account_test.go:254
↓ 5 callers
Function
newTokenAutoGroupsAuthenticatedContext
(t *testing.T, method string, target string, body any, userID int)
controller/token_auto_groups_test.go:67
↓ 5 callers
Function
normalizeJsonString
(value: string)
web/src/features/system-settings/models/utils.ts:32
↓ 5 callers
Function
normalizeModelName
(model: string)
web/src/features/channels/lib/model-mapping-validation.ts:45
↓ 5 callers
Function
normalizeTierLabel
(label: string | undefined)
web/src/features/pricing/lib/billing-expr.ts:351
↓ 5 callers
Function
objectValue
(value, name)
plugins/tasks/alibaba/plugin.js:785
↓ 5 callers
Method
observe
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:104
↓ 5 callers
Method
out
out sends one event to the client and keeps it for the report.
relay/requestplugin/socket.go:86
↓ 5 callers
Method
out
out writes to the client: one message on a WebSocket, stream bytes otherwise.
relay/requestplugin/reply.go:1135
↓ 5 callers
Function
parseAdvancedCustomConfig
( value: string | undefined )
web/src/features/channels/lib/advanced-custom.ts:559
↓ 5 callers
Function
parseMarketplaceIndex
(payload: unknown)
web/src/features/task-plugins/lib/marketplace.ts:81
↓ 5 callers
Function
parseOptionalJson
(value: string | undefined)
web/src/features/channels/lib/channel-form.ts:113
↓ 5 callers
Function
parseRatioMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:136
↓ 5 callers
Function
parseUsableMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:143
↓ 5 callers
Method
part
part is the output of a Responses output part.
relay/requestplugin/reply.go:223
↓ 5 callers
Function
performManageUserRequest
(t *testing.T, body string)
controller/user_manage_test.go:84
↓ 5 callers
Function
pinMappingOrderPlugin
(t *testing.T, c *gin.Context, source string)
relay/relay_task_test.go:213
↓ 5 callers
Function
pluginCredentialLine
(t *testing.T, pluginKey, token string)
controller/provider_plugin_test.go:113
↓ 5 callers
Function
pluginSourceByteLength
(source: string)
web/src/features/task-plugins/lib/plugin-url.ts:28
↓ 5 callers
Function
policyLabel
(t: TFunction, value: string)
web/src/features/system-settings/request-policies/policy-label.ts:6
↓ 5 callers
Function
postTaskPluginStatus
(t *testing.T, key, query, body string)
controller/task_plugin_test.go:165
↓ 5 callers
Function
preserveToolPrices
(t *testing.T)
setting/operation_setting/tools_price_test.go:12
↓ 5 callers
Function
pricingByModel
(pricings []Pricing)
model/pricing_usage_schema_test.go:140
↓ 5 callers
Function
pricingUsagePluginSource
(version, usageSchema string)
model/pricing_usage_schema_test.go:21
↓ 5 callers
Function
providerParams
providerParams returns the params of messages that name the OAuth provider.
controller/oauth.go:41
↓ 5 callers
Function
providerPlugin
(relay, source string)
pkg/jsplugin/provider_test.go:32
↓ 5 callers
Function
pushText
(texts, value)
plugins/tasks/request-filter/plugin.js:133
↓ 5 callers
Function
reasoningOutputText
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:290
↓ 5 callers
Function
redactVideoResponseBody
(body []byte)
service/task_polling.go:726
↓ 5 callers
Function
registerAttachmentPlugin
(t *testing.T, instances string)
relay/requestplugin/attachments_test.go:51
↓ 5 callers
Function
registerChannelGapsPlugin
(t *testing.T, key, source string)
controller/channel_plugin_gaps_test.go:73
↓ 5 callers
Function
rejectOldCredential
rejectOldCredential answers the token endpoint, and fails an old token with status until the refresh replaced it.
router/provider_plugin_relay_test.go:428
↓ 5 callers
Method
removeExpired
removeExpired releases every expired request at the front of the queue.
common/rate-limit.go:36
↓ 5 callers
Function
reportContext
reportContext is a finished request's context as the relay leaves it, and the recorder of what the client received.
relay/requestplugin/requestplugin_test.go:762
↓ 5 callers
Function
requestClientIP
(router http.Handler, remoteAddr string, forwardedFor string)
middleware/trusted_proxies_test.go:13
↓ 5 callers
Function
requestHeaders
(ctx)
plugins/tasks/vertex-ai/plugin.js:131
↓ 5 callers
Method
resolve
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:383
↓ 5 callers
Function
resolveModelProvider
(modelName: string)
web/src/lib/model-provider.ts:241
↓ 5 callers
Function
resolvePluginSourceUrl
( indexUrl: string, path: string )
web/src/features/task-plugins/lib/marketplace.ts:47
↓ 5 callers
Function
responsesCallName
responsesCallName is the upstream function name of a function_call or custom_tool_call item: a call made in a tool namespace uses the name its flatten
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:596
↓ 5 callers
Function
routePathShape
(routePath string)
pkg/jsplugin/routing.go:845
↓ 5 callers
Function
rowMetrics
(row: FlowQuotaDataItem)
web/src/features/dashboard/lib/flow.ts:160
↓ 5 callers
Function
sanitizeAuthRedirect
( value: unknown, origin: string )
web/src/features/auth/lib/auth-redirect.ts:46
↓ 5 callers
Function
sankeyDatumValue
( datum: Record<string, unknown>, key: string )
web/src/features/dashboard/lib/flow.ts:1045
↓ 5 callers
Function
seedSubscriptionResetPlan
(t *testing.T, plan *SubscriptionPlan)
model/subscription_reset_test.go:12
↓ 5 callers
Function
selectResponsesWSChannel
selectResponsesWSChannel narrows the shared HTTP selection to channels that speak the Responses WebSocket protocol and renders its outcome as a non-re
relay/responses_websocket.go:1088
↓ 5 callers
Function
serveRevalidatedJSON
serveRevalidatedJSON writes public content as JSON with a weak content-derived ETag and answers conditional requests with 304 Not Modified. The ETag i
controller/revalidated_response.go:28
↓ 5 callers
Function
serveTaskPluginImageProtocol
serveTaskPluginImageProtocol answers an OpenAI Images API request that a task plugin claimed. The API is synchronous: the durable submission runs firs
controller/plugin_protocol_image.go:31
↓ 5 callers
Function
setAuthNoStore
(c *gin.Context)
controller/auth_session.go:178
↓ 5 callers
Function
setupChannelGapsTest
(t *testing.T)
controller/channel_plugin_gaps_test.go:62
↓ 5 callers
Function
setupLogin
setupLogin evaluates the shared login policy after primary authentication. Only a completed Passkey ceremony may go directly to session issuance. A pe
controller/user.go:150
↓ 5 callers
Function
setupRelayRouterTestDB
(t *testing.T)
router/relay_router_test.go:149
↓ 5 callers
Function
setupResponsesWSRequestTest
(t *testing.T)
controller/responses_websocket_test.go:41
↓ 5 callers
Function
setupTokenAutoGroupsControllerTest
(t *testing.T)
controller/token_auto_groups_test.go:41
↓ 5 callers
Function
startSecurityEmailBinding
(t *testing.T, identity service.AuthIdentity, email, method string)
controller/security_account_test.go:337
↓ 5 callers
Method
stop
()
relay/helper/common.go:29
↓ 5 callers
Function
strictStringSlice
(object map[string]any, name string)
pkg/jsplugin/registry.go:2626
↓ 5 callers
Function
stringMetaField
(object map[string]any, name string)
pkg/jsplugin/registry.go:2509
↓ 5 callers
Function
stringifyAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:574
↓ 5 callers
Function
submit
(values: EmailBindingValues)
web/src/features/security/components/dialogs/email-bind-dialog.tsx:127
↓ 5 callers
Function
submitDoubaoImage
Runs the production host validation, body conversion and usage extraction for one normalized image request without contacting Volcengine.
plugins/doubao_responses_test.go:85
↓ 5 callers
Function
taskHasPluginExecution
(task *model.Task)
controller/task.go:248
↓ 5 callers
Function
taskPluginCompileError
(c *gin.Context, err error)
controller/task_plugin.go:34
↓ 5 callers
Function
taskPluginDebugStatus
(status string)
controller/task_plugin_debug.go:258
↓ 5 callers
Function
taskPluginProtocolJSONValue
taskPluginProtocolJSONValue encodes a task view for a hook, which receives it parsed from the text.
controller/plugin_protocol.go:1169
↓ 5 callers
Function
taskResponsesPluginSource
(key string, channelType int, models, supports, hooks, parseRequestBody string)
middleware/task_plugin_test.go:1939
↓ 5 callers
Function
testPDF
testPDF is a one-page PDF that shows text in Helvetica; trailer adds members to its trailer.
relay/requestplugin/attachments_test.go:87
↓ 5 callers
Function
textRegistryChatResponse
()
relaykit/relayconvert/response_registry_test.go:644
↓ 5 callers
Function
toRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, config: Record<string, unknown> )
web/src/features/task-plugins/lib/request-plugins.ts:218
↓ 5 callers
Function
tokenAuditParams
(c *gin.Context)
controller/audit.go:187
↓ 5 callers
Function
triggerRefresh
()
web/src/features/redemption-codes/components/redemptions-provider.tsx:47
↓ 5 callers
Function
trimmed
(value)
plugins/tasks/jimeng/plugin.js:54
↓ 5 callers
Function
tryParseRequestRuleExpr
( expr: string )
web/src/features/pricing/lib/billing-expr.ts:588
↓ 5 callers
Function
updateChannel
( id: number, data: Partial<Channel> )
web/src/features/channels/api.ts:245
↓ 5 callers
Function
updateUserCache
updateUserCache refreshes non-quota user cache fields. Quota is maintained by atomic quota delta paths and must not be overwritten by stale user snaps
model/user_cache.go:92
↓ 5 callers
Function
useAuthRedirect
()
web/src/features/auth/hooks/use-auth-redirect.ts:36
↓ 5 callers
Function
useBranch
()
web/src/components/ai-elements/branch.tsx:49
↓ 5 callers
Function
useCommonLogsColumns
( isAdmin: boolean, isRoot: boolean, showBillingSource = false )
web/src/features/usage-logs/components/columns/common-logs-columns.tsx:352
↓ 5 callers
Function
useScheduledChannelDatabase
useScheduledChannelDatabase isolates these locked-update tests on each real dialect selected through TEST_TASK_DB_DIALECT and the standard test DSNs.
model/channel_plugin_credential_test.go:242
↓ 5 callers
Function
validateAdvancedCustomConfig
( config: AdvancedCustomConfig | null )
web/src/features/channels/lib/advanced-custom.ts:615
↓ 5 callers
Function
validateOptionValue
(key string, value string)
model/option.go:239
↓ 5 callers
Function
valueMap
(value any)
controller/ratio_sync.go:94
↓ 5 callers
Function
viaGateway
(ctx)
plugins/tasks/vertex-ai/plugin.js:128
↓ 5 callers
Function
visualNodeId
()
web/src/features/pricing/lib/billing-expression/visual.ts:79
↓ 5 callers
Function
writeAccountStatusError
writeAccountStatusError responds with a web console message under a non-200 status.
controller/secure_verification.go:140
↓ 5 callers
Function
writeChat
(w http.ResponseWriter, request capturedRequest)
router/provider_plugin_relay_test.go:100
↓ 5 callers
Function
writeUserCache
(user *UserBase, includeQuota bool)
model/user_auth_cache.go:48
↓ 4 callers
Method
AddAll
(other map[K]V)
types/rw_map.go:46
← previous
next →
1,501–1,600 of 15,409, ranked by callers