Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chxcodepro/model-check
/ functions
Functions
875 in github.com/chxcodepro/model-check
⨍
Functions
875
◇
Types & classes
114
↓ 2 callers
Function
createTransientBuiltInProxyKey
( key: string, source: BuiltInProxyKeySource )
src/lib/utils/proxy-key.ts:37
↓ 2 callers
Function
deselectModel
(chId: string, name: string)
src/components/dashboard/model-filter-modal.tsx:271
↓ 2 callers
Function
detectCliEndpointType
(modelName: string)
src/lib/detection/strategies.ts:15
↓ 2 callers
Function
extractClaudeText
(payload: unknown)
src/lib/proxy/compat.ts:400
↓ 2 callers
Function
extractResponseContent
* Extract response content from API response based on endpoint type
src/lib/detection/detector.ts:194
↓ 2 callers
Function
extractStreamContent
* 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 callers
Function
extractTextFromGemini
(payload: unknown)
src/lib/proxy/compat.ts:1548
↓ 2 callers
Function
extractTextFromResponsesSse
(sseText: string)
src/lib/proxy/compat.ts:980
↓ 2 callers
Method
finally
* 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 callers
Function
findStatementEnd
(lines, startLine)
scripts/remove-console.cjs:19
↓ 2 callers
Function
finish
()
src/app/v1/chat/completions/route.ts:333
↓ 2 callers
Function
finish
()
src/app/v1/responses/route.ts:335
↓ 2 callers
Function
flattenChannelJobs
( channels: Array<{ id: string; jobs: DetectionJobData[] }> )
src/lib/queue/service.ts:136
↓ 2 callers
Function
formatDateTimeLocal
(date: Date)
src/components/dashboard/scheduler-modal.tsx:46
↓ 2 callers
Function
formatLatency
(value: number | null)
src/components/dashboard/proxy-request-log.tsx:105
↓ 2 callers
Function
getBuiltInProxyKeyRecord
()
src/lib/utils/proxy-key.ts:110
↓ 2 callers
Function
getClaudeCandidatePriority
(candidate: { detectedEndpoints: string[]; })
src/app/v1/messages/route.ts:117
↓ 2 callers
Function
getDefaultIntervalSchedule
(isLegacyCron: boolean)
src/components/dashboard/scheduler-modal.tsx:111
↓ 2 callers
Function
getDefaultStartAtLocal
()
src/components/dashboard/scheduler-modal.tsx:55
↓ 2 callers
Function
getDetectionModelIds
(jobs: DetectionJobData[])
src/lib/queue/service.ts:132
↓ 2 callers
Function
getDisplayEndpointsFromLogs
( modelName: string, detectedEndpoints: string[], endpointStatuses: Record<string, CheckLog> )
src/components/dashboard/channel-card.tsx:734
↓ 2 callers
Function
getEndpointStatuses
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:700
↓ 2 callers
Function
getEndpointsToTest
(modelName: string)
src/lib/detection/strategies.ts:67
↓ 2 callers
Function
getFallbackBinding
(fileId: string)
src/lib/proxy/file-bindings.ts:46
↓ 2 callers
Function
getJwtSecret
* Get JWT secret - from environment or auto-generated * Similar to getProxyApiKey pattern for consistency
src/lib/auth.ts:14
↓ 2 callers
Function
getLastSegmentModelName
(modelName: string)
src/lib/utils/model-name.ts:6
↓ 2 callers
Function
getLocalDayStartMs
(utcMs: number, offsetMinutes: number)
src/lib/scheduler/cron.ts:142
↓ 2 callers
Function
getNextDayMultiRunMs
( intervalConfig: ParsedIntervalSchedule, nowMs: number = Date.now() )
src/lib/scheduler/cron.ts:157
↓ 2 callers
Function
getNormalizedModelName
(modelName: string)
src/lib/utils/model-name.ts:11
↓ 2 callers
Function
getSessionChannelInflightKey
(sessionId: string, channelId: string)
src/lib/queue/queue.ts:48
↓ 2 callers
Function
getSessionChannelJobsKey
(sessionId: string, channelId: string)
src/lib/queue/queue.ts:44
↓ 2 callers
Function
getTemporaryStoppedChannelCredentialsByModelIds
( modelIds: string[] )
src/lib/proxy/index.ts:318
↓ 2 callers
Function
getTemporaryStoppedModelsForChannel
(channelId: string)
src/lib/proxy/index.ts:396
↓ 2 callers
Function
getTestingModelIds
()
src/lib/queue/queue.ts:347
↓ 2 callers
Function
getUnifiedModelCandidates
* 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 callers
Function
groupCandidatesByChannel
(candidates: ProxyChannelCandidate[])
src/lib/proxy/index.ts:1074
↓ 2 callers
Function
handleEditKeySave
()
src/components/dashboard/channel-manager.tsx:700
↓ 2 callers
Function
handleEditSave
(id: string)
src/components/dashboard/model-filter-modal.tsx:434
↓ 2 callers
Function
handleEditSave
(id: string)
src/components/dashboard/keyword-manager.tsx:148
↓ 2 callers
Function
handleToggleAll
(enabled: boolean)
src/components/dashboard/keyword-manager.tsx:129
↓ 2 callers
Function
handleWebDAVSync
(action: "upload" | "download")
src/components/dashboard/channel-manager.tsx:1035
↓ 2 callers
Function
importSiteBackupData
( backupData: SiteBackupData, mode: "merge" | "replace" )
src/lib/site-backup.ts:763
↓ 2 callers
Function
isCandidateTemporarilyStopped
(modelId: string)
src/lib/proxy/index.ts:180
↓ 2 callers
Function
isClaudeTextOnlyContent
(content: unknown)
src/app/v1/messages/route.ts:66
↓ 2 callers
Function
isClientStreamDisconnectError
(error: unknown)
src/lib/utils/error.ts:29
↓ 2 callers
Function
isCredentialAvailableForModel
(model: RoutedModelRecord)
src/lib/proxy/index.ts:791
↓ 2 callers
Function
isDisplayEndpointAvailable
(model: Model, endpointType: string)
src/components/dashboard/channel-card.tsx:234
↓ 2 callers
Function
isEnvFlagEnabled
(value: string | undefined, defaultValue: boolean)
src/lib/proxy/index.ts:45
↓ 2 callers
Function
isGeminiModelName
(modelName: string)
src/app/v1beta/models/[...path]/route.ts:49
↓ 2 callers
Function
isGemmaModelName
(modelName: string)
src/lib/proxy/compat.ts:755
↓ 2 callers
Function
isPrefixedModelName
(modelName: string)
src/app/v1beta/models/[...path]/route.ts:39
↓ 2 callers
Function
isPrivateOrLocalIp
(ip: string)
src/app/api/channel/public-upload/route.ts:29
↓ 2 callers
Function
isStrictlyIncreasingTimes
(times: string[])
src/components/dashboard/scheduler-modal.tsx:97
↓ 2 callers
Function
isUnsafeBaseUrl
(url: URL)
src/app/api/channel/public-upload/route.ts:55
↓ 2 callers
Function
isValidTimeString
(time: string)
src/components/dashboard/scheduler-modal.tsx:93
↓ 2 callers
Function
isWebDAVConfigured
()
src/lib/webdav/sync.ts:47
↓ 2 callers
Function
loadSchedulerConfig
()
src/lib/scheduler/cron.ts:260
↓ 2 callers
Function
looksLikeSsePayload
(text: string)
src/lib/detection/detector.ts:187
↓ 2 callers
Function
maskKey
(key: string)
src/app/api/channel/[id]/validate-keys/route.ts:8
↓ 2 callers
Function
nextRoundRobin
(counterKey: string)
src/lib/proxy/index.ts:88
↓ 2 callers
Function
normalizeBackupModelRefs
(value: unknown)
src/lib/site-backup.ts:269
↓ 2 callers
Function
normalizeBaseUrl
(baseUrl: string)
src/app/api/channel/public-upload/route.ts:17
↓ 2 callers
Function
normalizeTextContent
(content: unknown)
src/lib/proxy/compat.ts:3
↓ 2 callers
Function
orderModelsWithinChannel
( counterKey: string, group: RoutedModelRecord[] )
src/lib/proxy/index.ts:870
↓ 2 callers
Function
orderUnifiedCandidates
( modelName: string, preferredEndpoint: string | undefined, candidates: ProxyChannelCandidate[], strat
src/lib/proxy/index.ts:1551
↓ 2 callers
Function
parseIntervalSchedule
(schedule: string)
src/lib/scheduler/cron.ts:66
↓ 2 callers
Function
parseLastSSEEvent
* Parse the last meaningful JSON event from SSE stream for error checking
src/lib/detection/detector.ts:172
↓ 2 callers
Function
parseNonNegativeInt
(value: unknown, fallback: number)
src/lib/queue/worker.ts:113
↓ 2 callers
Function
parsePositiveInt
(value: unknown, fallback: number)
src/lib/queue/worker.ts:105
↓ 2 callers
Function
parseTemporaryStopCacheKey
(cacheKey: string)
src/lib/proxy/index.ts:116
↓ 2 callers
Function
readUpstreamTextPayload
(response: Response)
src/app/v1/messages/route.ts:131
↓ 2 callers
Function
recordModelResult
( modelId: Parameters<typeof recordProxyModelResult>[0], endpointType: Parameters<typeof recordPro
src/app/v1/images/generations/route.ts:70
↓ 2 callers
Function
reloadWorkerConfig
()
src/lib/queue/worker.ts:176
↓ 2 callers
Function
resetIdleTimer
()
src/lib/proxy/index.ts:2115
↓ 2 callers
Function
retryClaudeWithThinking
* Retry Claude detection with thinking parameter enabled * Returns successful result or null if retry also failed
src/lib/detection/detector.ts:522
↓ 2 callers
Function
savePreferredProxyEndpoint
( ...args: Parameters<typeof rememberPreferredProxyEndpoint> )
src/app/v1/chat/completions/route.ts:645
↓ 2 callers
Function
savePreferredProxyEndpoint
( ...args: Parameters<typeof rememberPreferredProxyEndpoint> )
src/app/v1/responses/route.ts:669
↓ 2 callers
Function
selectModel
(chId: string, name: string)
src/components/dashboard/model-filter-modal.tsx:256
↓ 2 callers
Function
sendBlockStarted
()
src/lib/proxy/compat.ts:1306
↓ 2 callers
Function
sendCreated
()
src/lib/proxy/compat.ts:1134
↓ 2 callers
Function
sendCreated
()
src/app/v1/responses/route.ts:294
↓ 2 callers
Function
sendRole
()
src/lib/proxy/compat.ts:1041
↓ 2 callers
Function
sendRole
()
src/app/v1/chat/completions/route.ts:312
↓ 2 callers
Function
shouldDisableChannelCredential
(statusCode?: number, errorMsg?: string)
src/lib/proxy/index.ts:1087
↓ 2 callers
Function
shouldMarkModelUnavailable
(statusCode?: number, errorMsg?: string)
src/lib/proxy/index.ts:1383
↓ 2 callers
Function
shouldPreferChatCompletionsForModel
(modelName: string)
src/lib/utils/model-name.ts:74
↓ 2 callers
Function
shuffleArray
(items: T[])
src/lib/proxy/index.ts:799
↓ 2 callers
Function
splitCronSchedules
(cronSchedule: string)
src/lib/scheduler/cron.ts:53
↓ 2 callers
Function
startAllCronsWithConfig
()
src/lib/scheduler/cron.ts:499
↓ 2 callers
Function
startCleanupCron
()
src/lib/scheduler/cron.ts:367
↓ 2 callers
Function
startWorker
()
src/lib/queue/worker.ts:461
↓ 2 callers
Function
stopAllCrons
()
src/lib/scheduler/cron.ts:419
↓ 2 callers
Function
stopWorker
()
src/lib/queue/worker.ts:531
↓ 2 callers
Function
supportsPreferredEndpoint
( modelName: string, detectedEndpoints: string[], preferredEndpoint?: string )
src/lib/proxy/index.ts:487
↓ 2 callers
Function
toClaudeMessages
(messages: unknown)
src/lib/proxy/compat.ts:278
↓ 2 callers
Function
toGeminiMessages
(messages: unknown)
src/lib/proxy/compat.ts:324
↓ 2 callers
Function
toJsonNullIfEmptyStringArray
( values: string[] )
src/lib/site-backup.ts:145
↓ 2 callers
Function
toResponsesMessages
(input: unknown)
src/lib/proxy/compat.ts:372
↓ 2 callers
Function
toggleCollapse
(side: "left" | "right", chId: string)
src/components/dashboard/model-filter-modal.tsx:359
↓ 2 callers
Function
updateKeyStatus
(channelId: string, keyId: string | null, valid: boolean)
src/app/api/channel/[id]/validate-keys/route.ts:13
← previous
next →
201–300 of 875, ranked by callers