MCPcopy Create free account

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

Functions875 in github.com/chxcodepro/model-check

↓ 4 callersFunctiongetDetectionProgress
()
src/lib/queue/service.ts:686
↓ 4 callersFunctiongetDisplayEndpointLog
( modelName: string, endpointStatuses: Record<string, CheckLog>, endpointType: string )
src/components/dashboard/channel-card.tsx:711
↓ 4 callersFunctiongetDisplayEndpoints
(modelName: string, endpoints: string[] = [])
src/lib/utils/model-name.ts:214
↓ 4 callersFunctiongetPreferredEndpointStatuses
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:723
↓ 4 callersFunctiongetProxyFileBinding
(fileId: string)
src/lib/proxy/file-bindings.ts:83
↓ 4 callersFunctionisExpectedCloseError
(error: unknown)
src/lib/utils/error.ts:48
↓ 4 callersFunctionisResponsesCompatibleChatModel
(modelName: string)
src/lib/utils/model-name.ts:111
↓ 4 callersFunctionisUserCancelled
(signal?: AbortSignal)
src/lib/detection/detector.ts:32
↓ 4 callersFunctionisWorkerRunning
()
src/lib/queue/worker.ts:541
↓ 4 callersFunctionnormalizeBaseUrl
(baseUrl: string)
src/lib/site-backup.ts:121
↓ 4 callersFunctionparseStringArray
* Safely parse JSON field as string array * Returns null if the value is not a valid string array
src/lib/utils/proxy-key.ts:71
↓ 4 callersFunctionparseStringArray
* Safely parse JSON field as string array * Returns null if the value is not a valid string array
src/lib/proxy/index.ts:477
↓ 4 callersFunctionproxyWithTimeout
( url: string, init: Parameters<typeof proxyFetch>[1], proxy?: string | null )
src/app/v1/files/route.ts:40
↓ 4 callersFunctionrecordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1/messages/route.ts:187
↓ 4 callersFunctionsaveProgressBaseline
()
src/lib/queue/queue.ts:537
↓ 4 callersFunctionsend
(event: string, data: unknown)
src/app/api/channel/import-accounts/route.ts:239
↓ 4 callersFunctionshouldAllowAdminTemporaryStopBypass
()
src/lib/proxy/index.ts:213
↓ 4 callersFunctionwithWebDAVLock
(fn: () => Promise<T>)
src/lib/webdav/sync.ts:8
↓ 3 callersMethod$executeRaw
* Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE Us
src/generated/prisma/internal/class.ts:120
↓ 3 callersFunctionaddDetectionJobsBulk
( jobs: DetectionJobData[], options?: { trackRemaining?: boolean } )
src/lib/queue/queue.ts:204
↓ 3 callersFunctionaddUpstreamAttempt
(attempt: ProxyRequestAttemptLog)
src/app/v1/messages/route.ts:176
↓ 3 callersFunctionaddUpstreamAttempt
(attempt: ProxyRequestAttemptLog)
src/app/v1/images/generations/route.ts:59
↓ 3 callersFunctionattachErrorHandler
(client: Redis)
src/lib/redis.ts:13
↓ 3 callersFunctionbindUploadedReference
( reference: string | null | undefined, channel: ProxyChannelCandidate, requestedModel: string )
src/app/v1/files/route.ts:62
↓ 3 callersFunctionbuildChatCompletion
(modelName: string, text: string, usage?: { prompt_tokens: number; completion_tokens: number; total_toke
src/lib/proxy/compat.ts:599
↓ 3 callersFunctionbuildChatCompletionFromText
(modelName: string, text: string)
src/lib/proxy/compat.ts:894
↓ 3 callersFunctionbuildClaudeMessageFromText
(modelName: string, text: string)
src/lib/proxy/compat.ts:914
↓ 3 callersFunctionbuildJobsForModels
* Build detection jobs for a list of models under a channel. * Resolves the correct apiKey for each model (channelKey vs default).
src/lib/queue/service.ts:61
↓ 3 callersFunctionbuildResponses
(modelName: string, text: string, usage?: { prompt_tokens: number; completion_tokens: number; total_toke
src/lib/proxy/compat.ts:623
↓ 3 callersFunctionbuildResponsesFromText
(modelName: string, text: string)
src/lib/proxy/compat.ts:906
↓ 3 callersFunctionbuildSiteBackupData
()
src/lib/site-backup.ts:540
↓ 3 callersFunctionclearDetectionSessions
()
src/lib/queue/queue.ts:228
↓ 3 callersFunctioncreateChatCompletionChunk
( modelName: string, delta: Record<string, unknown>, finishReason: string | null = null )
src/app/v1/chat/completions/route.ts:273
↓ 3 callersFunctioncreateSyntheticStreamResponse
(chunks: string[])
src/lib/proxy/compat.ts:722
↓ 3 callersFunctionenqueueSessionChannelJobs
( sessionId: string, channelId: string, limit: number )
src/lib/queue/queue.ts:109
↓ 3 callersFunctionextractGeminiText
(payload: unknown)
src/lib/proxy/compat.ts:415
↓ 3 callersFunctionextractTextFromClaudeSse
(sseText: string)
src/lib/proxy/compat.ts:1008
↓ 3 callersFunctionfailStream
( controller: ReadableStreamDefaultController<Uint8Array>, err: unknown )
src/lib/proxy/index.ts:2088
↓ 3 callersFunctionformatEndpointLabel
(value: string | null)
src/components/dashboard/proxy-request-log.tsx:84
↓ 3 callersFunctiongenerateApiKey
()
src/lib/utils/proxy-key.ts:85
↓ 3 callersFunctiongetActualModelName
(modelName: string)
src/lib/proxy/compat.ts:742
↓ 3 callersFunctiongetBuiltInProxyKeyInfo
()
src/lib/utils/proxy-key.ts:120
↓ 3 callersFunctiongetDetectionCounts
(jobs: DetectionJobData[])
src/lib/queue/service.ts:120
↓ 3 callersFunctiongetEffectiveWorkerConcurrency
(config: WorkerRuntimeConfig)
src/lib/queue/worker.ts:86
↓ 3 callersFunctiongetErrorMessage
(error: unknown, fallback: string)
src/lib/utils/error.ts:3
↓ 3 callersFunctiongetNextIntervalRunMs
(anchorMs: number, intervalMs: number, nowMs: number = Date.now())
src/lib/scheduler/cron.ts:132
↓ 3 callersFunctiongetNextRunTime
* Calculate next run time from cron expression
src/lib/scheduler/cron.ts:431
↓ 3 callersFunctiongetOpenAIEndpointOrder
(options: { modelName: string; requestedEndpoint: OpenAIProxyEndpoint; detectedEndpoints?: string[]; p
src/lib/utils/model-name.ts:146
↓ 3 callersFunctiongetOrderedChannelCandidatesByModel
( modelName: string, preferredEndpoint?: string, allowChannelPrefixFallback = true )
src/lib/proxy/index.ts:956
↓ 3 callersFunctiongetPendingSessionJobs
()
src/lib/queue/queue.ts:298
↓ 3 callersFunctiongetProxyApiKey
()
src/lib/utils/proxy-key.ts:98
↓ 3 callersFunctiongetQueueStats
()
src/lib/queue/queue.ts:322
↓ 3 callersFunctionisAuthenticated
(request: NextRequest)
src/lib/middleware/auth.ts:36
↓ 3 callersFunctionisCodexNamedModel
(modelName: string)
src/lib/utils/model-name.ts:70
↓ 3 callersFunctionisGptFiveOrNewerModel
(modelName: string)
src/lib/utils/model-name.ts:106
↓ 3 callersFunctionisMultiKeyChannel
( keyMode: string | null | undefined, extraKeyCount: number )
src/lib/channel/key-mode.ts:1
↓ 3 callersFunctionisQueueRunning
(stats: Pick<QueueStats, "active" | "waiting" | "delayed" | "pendingSession">)
src/lib/queue/queue.ts:318
↓ 3 callersFunctionisStringArray
(v: unknown)
src/app/api/proxy-keys/route.ts:118
↓ 3 callersFunctionlogError
(scope: string, error: unknown, fallback = "发生未知错误")
src/lib/utils/error.ts:62
↓ 3 callersFunctionlooksLikeSsePayload
(text: string)
src/lib/proxy/compat.ts:922
↓ 3 callersFunctionmaskKey
(key: string)
src/lib/utils/proxy-key.ts:330
↓ 3 callersFunctionnormalizeChannelKeyMode
( keyMode: string | null | undefined, extraKeyCount: number )
src/lib/channel/key-mode.ts:8
↓ 3 callersFunctionnormalizeConfig
(config: Partial<WorkerRuntimeConfig>)
src/lib/queue/worker.ts:121
↓ 3 callersFunctionnormalizeDayTimes
(times: string[])
src/components/dashboard/scheduler-modal.tsx:59
↓ 3 callersFunctionparseDetectionJob
(raw: string | null)
src/lib/queue/queue.ts:60
↓ 3 callersFunctionparseSiteBackupData
(rawData: unknown)
src/lib/site-backup.ts:698
↓ 3 callersFunctionparseSseEvents
(sseText: string)
src/lib/proxy/compat.ts:926
↓ 3 callersFunctionreadUpstreamTextPayload
(response: Response)
src/app/v1/chat/completions/route.ts:442
↓ 3 callersFunctionreadUpstreamTextPayload
(response: Response)
src/app/v1/responses/route.ts:460
↓ 3 callersFunctionsendText
(text: string)
src/app/v1/chat/completions/route.ts:322
↓ 3 callersFunctionshouldUseResponsesOnlyForChatModel
(modelName: string)
src/lib/utils/model-name.ts:123
↓ 3 callersFunctionsleep
(ms: number)
src/lib/detection/detector.ts:17
↓ 3 callersFunctionsplitLogsBySource
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:192
↓ 3 callersFunctionstartDetectionCronWithConfig
()
src/lib/scheduler/cron.ts:308
↓ 3 callersMethodsubscribe
(channel: string, callback: (message: string) => void)
src/lib/redis.ts:60
↓ 3 callersFunctiontriggerFullDetection
()
src/lib/queue/service.ts:146
↓ 3 callersFunctionwriteLog
(level: LogLevel, scope: string, error: unknown, fallback: string)
src/lib/utils/error.ts:15
↓ 2 callersFunctionaddUpstreamAttempt
(attempt: ProxyRequestAttemptLog)
src/app/v1/chat/completions/route.ts:624
↓ 2 callersFunctionaddUpstreamAttempt
(attempt: ProxyRequestAttemptLog)
src/app/v1/responses/route.ts:648
↓ 2 callersMethodaggregate
* Allows you to perform aggregations operations on a Model. * Note, that providing `undefined` is treated as the value not being there. * Read m
src/generated/prisma/models/Model.ts:1499
↓ 2 callersFunctionapplyModelRemainingCounts
(jobs: DetectionJobData[])
src/lib/queue/queue.ts:91
↓ 2 callersFunctionapplyWorkerConcurrency
(config: WorkerRuntimeConfig)
src/lib/queue/worker.ts:94
↓ 2 callersFunctionbuildClaudeMessage
(modelName: string, text: string, usage?: { prompt_tokens: number; completion_tokens: number; total_toke
src/lib/proxy/compat.ts:661
↓ 2 callersFunctionbuildClaudeMessageFromChat
(payload: unknown, modelName: string)
src/lib/proxy/compat.ts:918
↓ 2 callersFunctionbuildHeaders
(cookie?: string)
src/app/api/channel/import-accounts/route.ts:105
↓ 2 callersFunctionbuildMultipartBody
(formData: FormData)
src/app/v1/files/route.ts:29
↓ 2 callersFunctionbuildProxyChannelCandidate
( model: RoutedModelRecord, actualModelName: string )
src/lib/proxy/index.ts:808
↓ 2 callersFunctionbuildUsageFromClaude
(payload: unknown)
src/lib/proxy/compat.ts:443
↓ 2 callersFunctionbuildUsageFromGemini
(payload: unknown)
src/lib/proxy/compat.ts:467
↓ 2 callersFunctionbuildWhere
( search: string, endpointType: string, status: string )
src/app/api/proxy-request-logs/route.ts:8
↓ 2 callersFunctioncanAccessModel
( keyRecord: ProxyKey | undefined, isEnvKey: boolean | undefined, channelId: string, modelId: string,
src/lib/utils/proxy-key.ts:279
↓ 2 callersFunctionchannelSemaphoreKey
* Redis-based semaphore for concurrency control
src/lib/queue/worker.ts:184
↓ 2 callersFunctioncheckResponseBodyForError
* Check if response body contains error indicators * Some API gateways/proxies return HTTP 200 but with error in body
src/lib/detection/detector.ts:64
↓ 2 callersFunctioncleanup
()
src/app/api/sse/progress/route.ts:20
↓ 2 callersFunctioncleanupOldLogs
()
src/lib/scheduler/cron.ts:392
↓ 2 callersFunctionclearTemporaryStoppedModel
( modelId: string )
src/lib/proxy/index.ts:259
↓ 2 callersFunctioncollectGemmaTopLevelInstructions
(body: Record<string, unknown>)
src/lib/proxy/compat.ts:135
↓ 2 callersFunctioncompleteStream
(controller: ReadableStreamDefaultController<Uint8Array>)
src/lib/proxy/index.ts:2078
↓ 2 callersFunctioncreateAbortContext
(externalSignal?: AbortSignal)
src/lib/detection/detector.ts:36
↓ 2 callersFunctioncreateDetectionSession
( channels: SessionChannelJobs[], activeChannelLimit: number, channelConcurrency: number )
src/lib/queue/queue.ts:235
← previousnext →101–200 of 875, ranked by callers