MCPcopy Create free account

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

Functions875 in github.com/chxcodepro/model-check

↓ 2 callersFunctioncreateTransientBuiltInProxyKey
( key: string, source: BuiltInProxyKeySource )
src/lib/utils/proxy-key.ts:37
↓ 2 callersFunctiondeselectModel
(chId: string, name: string)
src/components/dashboard/model-filter-modal.tsx:271
↓ 2 callersFunctiondetectCliEndpointType
(modelName: string)
src/lib/detection/strategies.ts:15
↓ 2 callersFunctionextractClaudeText
(payload: unknown)
src/lib/proxy/compat.ts:400
↓ 2 callersFunctionextractResponseContent
* Extract response content from API response based on endpoint type
src/lib/detection/detector.ts:194
↓ 2 callersFunctionextractStreamContent
* Extract text content from SSE stream based on endpoint type * Supports: OpenAI CHAT delta, Claude content_block_delta, Codex output_text.delta
src/lib/detection/detector.ts:123
↓ 2 callersFunctionextractTextFromGemini
(payload: unknown)
src/lib/proxy/compat.ts:1548
↓ 2 callersFunctionextractTextFromResponsesSse
(sseText: string)
src/lib/proxy/compat.ts:980
↓ 2 callersMethodfinally
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callbac
src/generated/prisma/models/Model.ts:1614
↓ 2 callersFunctionfindStatementEnd
(lines, startLine)
scripts/remove-console.cjs:19
↓ 2 callersFunctionfinish
()
src/app/v1/chat/completions/route.ts:333
↓ 2 callersFunctionfinish
()
src/app/v1/responses/route.ts:335
↓ 2 callersFunctionflattenChannelJobs
( channels: Array<{ id: string; jobs: DetectionJobData[] }> )
src/lib/queue/service.ts:136
↓ 2 callersFunctionformatDateTimeLocal
(date: Date)
src/components/dashboard/scheduler-modal.tsx:46
↓ 2 callersFunctionformatLatency
(value: number | null)
src/components/dashboard/proxy-request-log.tsx:105
↓ 2 callersFunctiongetBuiltInProxyKeyRecord
()
src/lib/utils/proxy-key.ts:110
↓ 2 callersFunctiongetClaudeCandidatePriority
(candidate: { detectedEndpoints: string[]; })
src/app/v1/messages/route.ts:117
↓ 2 callersFunctiongetDefaultIntervalSchedule
(isLegacyCron: boolean)
src/components/dashboard/scheduler-modal.tsx:111
↓ 2 callersFunctiongetDefaultStartAtLocal
()
src/components/dashboard/scheduler-modal.tsx:55
↓ 2 callersFunctiongetDetectionModelIds
(jobs: DetectionJobData[])
src/lib/queue/service.ts:132
↓ 2 callersFunctiongetDisplayEndpointsFromLogs
( modelName: string, detectedEndpoints: string[], endpointStatuses: Record<string, CheckLog> )
src/components/dashboard/channel-card.tsx:734
↓ 2 callersFunctiongetEndpointStatuses
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:700
↓ 2 callersFunctiongetEndpointsToTest
(modelName: string)
src/lib/detection/strategies.ts:67
↓ 2 callersFunctiongetFallbackBinding
(fileId: string)
src/lib/proxy/file-bindings.ts:46
↓ 2 callersFunctiongetJwtSecret
* Get JWT secret - from environment or auto-generated * Similar to getProxyApiKey pattern for consistency
src/lib/auth.ts:14
↓ 2 callersFunctiongetLastSegmentModelName
(modelName: string)
src/lib/utils/model-name.ts:6
↓ 2 callersFunctiongetLocalDayStartMs
(utcMs: number, offsetMinutes: number)
src/lib/scheduler/cron.ts:142
↓ 2 callersFunctiongetNextDayMultiRunMs
( intervalConfig: ParsedIntervalSchedule, nowMs: number = Date.now() )
src/lib/scheduler/cron.ts:157
↓ 2 callersFunctiongetNormalizedModelName
(modelName: string)
src/lib/utils/model-name.ts:11
↓ 2 callersFunctiongetSessionChannelInflightKey
(sessionId: string, channelId: string)
src/lib/queue/queue.ts:48
↓ 2 callersFunctiongetSessionChannelJobsKey
(sessionId: string, channelId: string)
src/lib/queue/queue.ts:44
↓ 2 callersFunctiongetTemporaryStoppedChannelCredentialsByModelIds
( modelIds: string[] )
src/lib/proxy/index.ts:318
↓ 2 callersFunctiongetTemporaryStoppedModelsForChannel
(channelId: string)
src/lib/proxy/index.ts:396
↓ 2 callersFunctiongetTestingModelIds
()
src/lib/queue/queue.ts:347
↓ 2 callersFunctiongetUnifiedModelCandidates
* Find channel for unified model mode * Searches across all channels for a bare model name, picks a healthy one
src/lib/proxy/index.ts:1446
↓ 2 callersFunctiongroupCandidatesByChannel
(candidates: ProxyChannelCandidate[])
src/lib/proxy/index.ts:1074
↓ 2 callersFunctionhandleEditKeySave
()
src/components/dashboard/channel-manager.tsx:700
↓ 2 callersFunctionhandleEditSave
(id: string)
src/components/dashboard/model-filter-modal.tsx:434
↓ 2 callersFunctionhandleEditSave
(id: string)
src/components/dashboard/keyword-manager.tsx:148
↓ 2 callersFunctionhandleToggleAll
(enabled: boolean)
src/components/dashboard/keyword-manager.tsx:129
↓ 2 callersFunctionhandleWebDAVSync
(action: "upload" | "download")
src/components/dashboard/channel-manager.tsx:1035
↓ 2 callersFunctionimportSiteBackupData
( backupData: SiteBackupData, mode: "merge" | "replace" )
src/lib/site-backup.ts:763
↓ 2 callersFunctionisCandidateTemporarilyStopped
(modelId: string)
src/lib/proxy/index.ts:180
↓ 2 callersFunctionisClaudeTextOnlyContent
(content: unknown)
src/app/v1/messages/route.ts:66
↓ 2 callersFunctionisClientStreamDisconnectError
(error: unknown)
src/lib/utils/error.ts:29
↓ 2 callersFunctionisCredentialAvailableForModel
(model: RoutedModelRecord)
src/lib/proxy/index.ts:791
↓ 2 callersFunctionisDisplayEndpointAvailable
(model: Model, endpointType: string)
src/components/dashboard/channel-card.tsx:234
↓ 2 callersFunctionisEnvFlagEnabled
(value: string | undefined, defaultValue: boolean)
src/lib/proxy/index.ts:45
↓ 2 callersFunctionisGeminiModelName
(modelName: string)
src/app/v1beta/models/[...path]/route.ts:49
↓ 2 callersFunctionisGemmaModelName
(modelName: string)
src/lib/proxy/compat.ts:755
↓ 2 callersFunctionisPrefixedModelName
(modelName: string)
src/app/v1beta/models/[...path]/route.ts:39
↓ 2 callersFunctionisPrivateOrLocalIp
(ip: string)
src/app/api/channel/public-upload/route.ts:29
↓ 2 callersFunctionisStrictlyIncreasingTimes
(times: string[])
src/components/dashboard/scheduler-modal.tsx:97
↓ 2 callersFunctionisUnsafeBaseUrl
(url: URL)
src/app/api/channel/public-upload/route.ts:55
↓ 2 callersFunctionisValidTimeString
(time: string)
src/components/dashboard/scheduler-modal.tsx:93
↓ 2 callersFunctionisWebDAVConfigured
()
src/lib/webdav/sync.ts:47
↓ 2 callersFunctionloadSchedulerConfig
()
src/lib/scheduler/cron.ts:260
↓ 2 callersFunctionlooksLikeSsePayload
(text: string)
src/lib/detection/detector.ts:187
↓ 2 callersFunctionmaskKey
(key: string)
src/app/api/channel/[id]/validate-keys/route.ts:8
↓ 2 callersFunctionnextRoundRobin
(counterKey: string)
src/lib/proxy/index.ts:88
↓ 2 callersFunctionnormalizeBackupModelRefs
(value: unknown)
src/lib/site-backup.ts:269
↓ 2 callersFunctionnormalizeBaseUrl
(baseUrl: string)
src/app/api/channel/public-upload/route.ts:17
↓ 2 callersFunctionnormalizeTextContent
(content: unknown)
src/lib/proxy/compat.ts:3
↓ 2 callersFunctionorderModelsWithinChannel
( counterKey: string, group: RoutedModelRecord[] )
src/lib/proxy/index.ts:870
↓ 2 callersFunctionorderUnifiedCandidates
( modelName: string, preferredEndpoint: string | undefined, candidates: ProxyChannelCandidate[], strat
src/lib/proxy/index.ts:1551
↓ 2 callersFunctionparseIntervalSchedule
(schedule: string)
src/lib/scheduler/cron.ts:66
↓ 2 callersFunctionparseLastSSEEvent
* Parse the last meaningful JSON event from SSE stream for error checking
src/lib/detection/detector.ts:172
↓ 2 callersFunctionparseNonNegativeInt
(value: unknown, fallback: number)
src/lib/queue/worker.ts:113
↓ 2 callersFunctionparsePositiveInt
(value: unknown, fallback: number)
src/lib/queue/worker.ts:105
↓ 2 callersFunctionparseTemporaryStopCacheKey
(cacheKey: string)
src/lib/proxy/index.ts:116
↓ 2 callersFunctionreadUpstreamTextPayload
(response: Response)
src/app/v1/messages/route.ts:131
↓ 2 callersFunctionrecordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1/images/generations/route.ts:70
↓ 2 callersFunctionreloadWorkerConfig
()
src/lib/queue/worker.ts:176
↓ 2 callersFunctionresetIdleTimer
()
src/lib/proxy/index.ts:2115
↓ 2 callersFunctionretryClaudeWithThinking
* Retry Claude detection with thinking parameter enabled * Returns successful result or null if retry also failed
src/lib/detection/detector.ts:522
↓ 2 callersFunctionsavePreferredProxyEndpoint
( ...args: Parameters<typeof rememberPreferredProxyEndpoint> )
src/app/v1/chat/completions/route.ts:645
↓ 2 callersFunctionsavePreferredProxyEndpoint
( ...args: Parameters<typeof rememberPreferredProxyEndpoint> )
src/app/v1/responses/route.ts:669
↓ 2 callersFunctionselectModel
(chId: string, name: string)
src/components/dashboard/model-filter-modal.tsx:256
↓ 2 callersFunctionsendBlockStarted
()
src/lib/proxy/compat.ts:1306
↓ 2 callersFunctionsendCreated
()
src/lib/proxy/compat.ts:1134
↓ 2 callersFunctionsendCreated
()
src/app/v1/responses/route.ts:294
↓ 2 callersFunctionsendRole
()
src/lib/proxy/compat.ts:1041
↓ 2 callersFunctionsendRole
()
src/app/v1/chat/completions/route.ts:312
↓ 2 callersFunctionshouldDisableChannelCredential
(statusCode?: number, errorMsg?: string)
src/lib/proxy/index.ts:1087
↓ 2 callersFunctionshouldMarkModelUnavailable
(statusCode?: number, errorMsg?: string)
src/lib/proxy/index.ts:1383
↓ 2 callersFunctionshouldPreferChatCompletionsForModel
(modelName: string)
src/lib/utils/model-name.ts:74
↓ 2 callersFunctionshuffleArray
(items: T[])
src/lib/proxy/index.ts:799
↓ 2 callersFunctionsplitCronSchedules
(cronSchedule: string)
src/lib/scheduler/cron.ts:53
↓ 2 callersFunctionstartAllCronsWithConfig
()
src/lib/scheduler/cron.ts:499
↓ 2 callersFunctionstartCleanupCron
()
src/lib/scheduler/cron.ts:367
↓ 2 callersFunctionstartWorker
()
src/lib/queue/worker.ts:461
↓ 2 callersFunctionstopAllCrons
()
src/lib/scheduler/cron.ts:419
↓ 2 callersFunctionstopWorker
()
src/lib/queue/worker.ts:531
↓ 2 callersFunctionsupportsPreferredEndpoint
( modelName: string, detectedEndpoints: string[], preferredEndpoint?: string )
src/lib/proxy/index.ts:487
↓ 2 callersFunctiontoClaudeMessages
(messages: unknown)
src/lib/proxy/compat.ts:278
↓ 2 callersFunctiontoGeminiMessages
(messages: unknown)
src/lib/proxy/compat.ts:324
↓ 2 callersFunctiontoJsonNullIfEmptyStringArray
( values: string[] )
src/lib/site-backup.ts:145
↓ 2 callersFunctiontoResponsesMessages
(input: unknown)
src/lib/proxy/compat.ts:372
↓ 2 callersFunctiontoggleCollapse
(side: "left" | "right", chId: string)
src/components/dashboard/model-filter-modal.tsx:359
↓ 2 callersFunctionupdateKeyStatus
(channelId: string, keyId: string | null, valid: boolean)
src/app/api/channel/[id]/validate-keys/route.ts:13
← previousnext →201–300 of 875, ranked by callers