MCPcopy Create free account

hub / github.com/chxcodepro/model-check / functions

Functions875 in github.com/chxcodepro/model-check

↓ 70 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 58 callersMethodcatch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/Model.ts:1607
↓ 58 callersFunctionerrorResponse
(message: string, status: number = 400)
src/lib/proxy/index.ts:2261
↓ 41 callersFunctionrequireAuth
(request: NextRequest)
src/lib/middleware/auth.ts:10
↓ 37 callersFunctiongetRedis
()
src/lib/queue/queue.ts:19
↓ 35 callersMethodfindMany
* Find zero or more Models that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here
src/generated/prisma/models/Model.ts:1284
↓ 33 callersMethodthen
* Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved.
src/generated/prisma/models/Model.ts:1601
↓ 33 callersFunctionwriteRequestLog
(options: { endpointType?: "CHAT" | "CODEX" | "CLAUDE" | "GEMINI"; requestedModel?: string | null;
src/app/v1/chat/completions/route.ts:604
↓ 32 callersMethoddelete
* Delete a Model. * @param {ModelDeleteArgs} args - Arguments to delete one Model. * @example * // Delete one Model * const Model = await
src/generated/prisma/models/Model.ts:1350
↓ 32 callersFunctionwriteRequestLog
(options: { endpointType?: "CHAT" | "CODEX" | "CLAUDE" | "GEMINI"; requestedModel?: string | null;
src/app/v1/responses/route.ts:628
↓ 31 callersMethodfindUnique
* Find zero or one Model that matches the filter. * @param {ModelFindUniqueArgs} args - Arguments to find a Model * @example * // Get one Mod
src/generated/prisma/models/Model.ts:1221
↓ 27 callersFunctioncreateAsyncErrorHandler
( scope: string, level: LogLevel = "error", fallback = "后台任务执行失败" )
src/lib/utils/error.ts:66
↓ 25 callersFunctionlogWarn
(scope: string, error: unknown, fallback = "发生未知错误")
src/lib/utils/error.ts:58
↓ 25 callersMethodupdate
* Update one Model. * @param {ModelUpdateArgs} args - Arguments to update one Model. * @example * // Update one Model * const model = awai
src/generated/prisma/models/Model.ts:1367
↓ 21 callersFunctionparseNullableString
(value: unknown)
src/lib/site-backup.ts:109
↓ 20 callersFunctionwriteRequestLog
(options: { requestedModel?: string | null; actualModelName?: string | null; channelId?: str
src/app/v1beta/models/[...path]/route.ts:68
↓ 15 callersMethodcreate
* Create a Model. * @param {ModelCreateArgs} args - Arguments to create a Model. * @example * // Create one Model * const Model = await pr
src/generated/prisma/models/Model.ts:1298
↓ 15 callersMethoddeleteMany
* Delete zero or more Models. * @param {ModelDeleteManyArgs} args - Arguments to filter Models to delete. * @example * // Delete a few Models
src/generated/prisma/models/Model.ts:1381
↓ 15 callersFunctionrecordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1/chat/completions/route.ts:635
↓ 15 callersFunctionrecordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1/responses/route.ts:659
↓ 14 callersFunctionwithStreamTracking
( response: Response, onComplete: () => void, onError: (err: Error) => void )
src/lib/proxy/index.ts:2172
↓ 13 callersFunctiongetUpstreamPathFromUrl
(url: string)
src/lib/proxy/index.ts:598
↓ 13 callersFunctionparseStringArray
(value: unknown)
src/lib/site-backup.ts:102
↓ 13 callersFunctionwriteRequestLog
(options: { endpointType?: "CLAUDE" | "CHAT"; requestedModel?: string | null; actualModelNam
src/app/v1/messages/route.ts:155
↓ 12 callersFunctioncreateClaudeEvent
(event: Record<string, unknown>)
src/lib/proxy/compat.ts:718
↓ 12 callersFunctiongetRedis
()
src/lib/queue/worker.ts:16
↓ 12 callersFunctionuseAuth
()
src/components/providers/auth-provider.tsx:122
↓ 11 callersMethod$transaction
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * cons
src/generated/prisma/internal/class.ts:171
↓ 11 callersMethodcreateMany
* Create many Models. * @param {ModelCreateManyArgs} args - Arguments to create many Models. * @example * // Create many Models * const mo
src/generated/prisma/models/Model.ts:1312
↓ 10 callersMethodfindFirst
* Find the first Model that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: ht
src/generated/prisma/models/Model.ts:1250
↓ 10 callersFunctiongetRedisClient
()
src/lib/redis.ts:48
↓ 10 callersFunctionstreamResponse
( upstream: Response, callbacks?: { onComplete?: () => void; onError?: (err: Error) => void; } )
src/lib/proxy/index.ts:2032
↓ 10 callersFunctionuseToast
()
src/components/ui/toast.tsx:126
↓ 9 callersFunctionbuildUpstreamHeaders
( apiKey: string, apiType: ApiType, extraHeaders?: Record<string, string>, options?: { includeCont
src/lib/proxy/index.ts:1948
↓ 9 callersFunctiongetDetectionQueue
()
src/lib/queue/queue.ts:165
↓ 9 callersFunctiongetModelFamily
(modelName: string)
src/lib/utils/model-name.ts:17
↓ 9 callersFunctiongetModelSignature
(modelName: string, channelKeyId: string | null | undefined)
src/lib/queue/service.ts:373
↓ 9 callersFunctionnormalizeBaseUrl
(baseUrl: string)
src/lib/proxy/index.ts:2276
↓ 8 callersFunctionbuildProxyFileBindingKey
(binding: ProxyFileBinding)
src/lib/proxy/file-bindings.ts:42
↓ 8 callersFunctioncreateResponsesEvent
(event: Record<string, unknown>)
src/lib/proxy/compat.ts:714
↓ 8 callersFunctionincludesAnyPattern
(message: string, patterns: string[])
src/lib/proxy/index.ts:1054
↓ 8 callersFunctionisClaudeModelName
(modelName: string)
src/lib/proxy/compat.ts:747
↓ 8 callersFunctionisGeminiModelName
(modelName: string)
src/lib/proxy/compat.ts:751
↓ 8 callersMethodupsert
* Create or update one Model. * @param {ModelUpsertArgs} args - Arguments to update or create a Model. * @example * // Update or create a Mod
src/generated/prisma/models/Model.ts:1449
↓ 8 callersFunctionverifyProxyKeyAsync
(request: NextRequest)
src/lib/proxy/index.ts:664
↓ 7 callersMethodcount
* Count the number of Models. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/nu
src/generated/prisma/models/Model.ts:1465
↓ 7 callersFunctiongetCronStatus
()
src/lib/scheduler/cron.ts:477
↓ 7 callersFunctiongetProxyChannelCandidatesWithPermission
( modelName: string, keyResult: ValidateKeyResult, preferredEndpoint?: string )
src/lib/proxy/index.ts:1624
↓ 7 callersFunctionnormalizeRequestedModelForProxy
( modelName: string, keyResult?: ValidateKeyResult )
src/lib/proxy/index.ts:848
↓ 7 callersFunctionparseBoolean
(value: unknown, fallback: boolean)
src/lib/site-backup.ts:113
↓ 7 callersMethodupdateMany
* Update zero or more Models. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/nu
src/generated/prisma/models/Model.ts:1400
↓ 7 callersFunctionwriteRequestLog
(options: { requestedModel?: string | null; actualModelName?: string | null; channelId?: str
src/app/v1/images/generations/route.ts:40
↓ 6 callersFunctionaddUpstreamAttempt
(attempt: ProxyRequestAttemptLog)
src/app/v1beta/models/[...path]/route.ts:88
↓ 6 callersFunctioncreateChatCompletionChunk
( modelName: string, delta: Record<string, unknown>, finishReason: string | null = null )
src/lib/proxy/compat.ts:694
↓ 6 callersFunctioncreateProxyRequestId
()
src/lib/proxy/index.ts:594
↓ 6 callersFunctionfinish
()
src/lib/proxy/compat.ts:1047
↓ 6 callersFunctiongetSessionBaseKey
(sessionId: string)
src/lib/queue/queue.ts:32
↓ 6 callersFunctiongetUnifiedModelName
(modelName: string)
src/lib/proxy/index.ts:830
↓ 6 callersFunctionmarkProxyChannelKeyUnavailable
( modelId: string, statusCode?: number, errorMsg?: string )
src/lib/proxy/index.ts:980
↓ 6 callersFunctionnormalizeInstructionText
(content: unknown)
src/lib/proxy/compat.ts:41
↓ 6 callersFunctionparseNumber
(value: unknown, fallback: number)
src/lib/site-backup.ts:117
↓ 6 callersFunctionproxyRequest
( url: string, method: string, headers: Record<string, string>, body?: unknown, proxy?: string | nul
src/lib/proxy/index.ts:1985
↓ 6 callersFunctionrecordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1beta/models/[...path]/route.ts:99
↓ 6 callersFunctionrecordProxyModelResult
( modelId: string, endpointType: ProxyEndpointType, success: boolean, options?: { channelId?: stri
src/lib/proxy/index.ts:1675
↓ 6 callersFunctionrecordProxyRequestLog
(input: ProxyRequestLogInput)
src/lib/proxy/index.ts:710
↓ 6 callersFunctionrememberPreferredProxyEndpoint
( modelId: string, endpointType: "CHAT" | "CODEX" )
src/lib/proxy/index.ts:1802
↓ 6 callersFunctionscanKeys
* Scan Redis keys by pattern (替代 KEYS 命令,避免阻塞)
src/lib/queue/queue.ts:412
↓ 6 callersFunctionstripThinkingBlocks
* Strip <think>...</think> blocks from response content * Many relay/proxy services embed thinking content in the main response
src/lib/detection/detector.ts:110
↓ 5 callersFunctionauthenticateAdmin
(password: string)
src/lib/auth.ts:36
↓ 5 callersFunctionbuildAverageDayTimes
(startAtLocal: string, dayRunCount: number)
src/components/dashboard/scheduler-modal.tsx:74
↓ 5 callersFunctionbuildGemmaInstructionBlock
(entries: GemmaInstructionEntry[])
src/lib/proxy/compat.ts:94
↓ 5 callersFunctionclassifyProxyFailure
(statusCode?: number, errorMsg?: string)
src/lib/proxy/index.ts:1103
↓ 5 callersFunctionextractToken
(authHeader: string | null)
src/lib/auth.ts:83
↓ 5 callersFunctiongetModelDisplayStatus
(model: Model)
src/components/dashboard/channel-card.tsx:207
↓ 5 callersFunctiongetSessionActiveChannelsKey
(sessionId: string)
src/lib/queue/queue.ts:40
↓ 5 callersFunctiongetSessionPendingChannelsKey
(sessionId: string)
src/lib/queue/queue.ts:36
↓ 5 callersFunctionloadWorkerConfig
()
src/lib/queue/worker.ts:134
↓ 5 callersFunctionpickNumeric
(...values: unknown[])
src/lib/proxy/compat.ts:391
↓ 5 callersFunctionproxyFetch
( url: string | URL, options?: RequestInit, proxy?: string | null )
src/lib/utils/proxy-fetch.ts:242
↓ 5 callersFunctionstopDetectionSchedulers
()
src/lib/scheduler/cron.ts:187
↓ 5 callersFunctionsupportsDisplayEndpoint
( modelName: string, endpoints: string[] = [], endpoint: string )
src/lib/utils/model-name.ts:242
↓ 5 callersFunctionsyncAllChannelsToWebDAV
(_channels?: ChannelData[])
src/lib/webdav/sync.ts:163
↓ 5 callersFunctionuniqueModelRefs
(refs: BackupModelRef[])
src/lib/site-backup.ts:137
↓ 5 callersFunctionverifyToken
(token: string)
src/lib/auth.ts:71
↓ 4 callersMethod$disconnect
* Disconnect from the database
src/generated/prisma/internal/class.ts:109
↓ 4 callersFunctionbuildChannelModelRef
( channelName: string, modelName: string, channelKeyIndex: number | null )
src/lib/site-backup.ts:129
↓ 4 callersFunctionbuildModelRefKey
(ref: BackupModelRef)
src/lib/site-backup.ts:125
↓ 4 callersFunctionbuildTemporaryStopKey
(modelId: string)
src/lib/proxy/index.ts:112
↓ 4 callersFunctioncleanup
()
src/lib/utils/proxy-fetch.ts:209
↓ 4 callersFunctionclearIdle
()
src/lib/proxy/index.ts:2050
↓ 4 callersFunctionclearModelsCancelled
(modelIds: string[])
src/lib/queue/queue.ts:529
↓ 4 callersFunctionclearStoppedFlag
()
src/lib/queue/queue.ts:504
↓ 4 callersFunctioncompleteByClientClose
( controller?: ReadableStreamDefaultController<Uint8Array> )
src/lib/proxy/index.ts:2057
↓ 4 callersFunctioncreateResponsesEvent
(event: Record<string, unknown>)
src/app/v1/responses/route.ts:269
↓ 4 callersFunctionextractProxyFileReferences
( value: unknown, result = new Set<string>() )
src/lib/proxy/file-bindings.ts:15
↓ 4 callersFunctionextractTextFromChatSse
(sseText: string)
src/lib/proxy/compat.ts:949
↓ 4 callersFunctionfetchModels
( baseUrl: string, apiKey: string, proxy?: string | null )
src/lib/detection/detector.ts:592
↓ 4 callersFunctionfilterTemporarilyStoppedCandidates
( candidates: ProxyChannelCandidate[] )
src/lib/proxy/index.ts:1058
↓ 4 callersFunctionfinishCancelledBeforeExecution
(errorMsg: string)
src/lib/queue/worker.ts:280
↓ 4 callersFunctionformatEndpointType
(ep: string)
src/components/dashboard/channel-card.tsx:158
next →1–100 of 875, ranked by callers