MCPcopy Create free account

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

Functions875 in github.com/chxcodepro/model-check

↓ 1 callersMethod$connect
* Connect with the database
src/generated/prisma/internal/class.ts:104
↓ 1 callersFunctionacquireSlots
(channelId: string, config: WorkerRuntimeConfig)
src/lib/queue/worker.ts:197
↓ 1 callersFunctionappendBetaHeader
(existingValue: string | null, betaValue: string)
src/app/v1/files/route.ts:18
↓ 1 callersFunctionareDayTimesSame
(left: string[], right: string[], count: number)
src/components/dashboard/scheduler-modal.tsx:88
↓ 1 callersFunctionbuildAttemptList
( requestedBody: Record<string, unknown>, baseUrl: string, actualModelName: string, detectedEndpoints:
src/app/v1/chat/completions/route.ts:454
↓ 1 callersFunctionbuildAttemptList
( requestedBody: Record<string, unknown>, baseUrl: string, actualModelName: string, detectedEndpoints:
src/app/v1/responses/route.ts:472
↓ 1 callersFunctionbuildChatBodyFromClaudeRequest
( body: Record<string, unknown>, modelName: string )
src/lib/proxy/compat.ts:822
↓ 1 callersFunctionbuildChatCompletionFromClaude
(payload: unknown, modelName: string)
src/lib/proxy/compat.ts:890
↓ 1 callersFunctionbuildChatCompletionFromGemini
(payload: unknown, modelName: string)
src/lib/proxy/compat.ts:898
↓ 1 callersFunctionbuildChatCompletionFromResponses
( payload: unknown, modelName: string )
src/app/v1/chat/completions/route.ts:234
↓ 1 callersFunctionbuildChatEndpoint
* Build standard OpenAI /v1/chat/completions endpoint
src/lib/detection/strategies.ts:289
↓ 1 callersFunctionbuildChatFallbackBody
( body: Record<string, unknown>, modelName: string )
src/app/v1/responses/route.ts:138
↓ 1 callersFunctionbuildChatMessagesFromResponsesInput
(input: unknown)
src/app/v1/responses/route.ts:118
↓ 1 callersFunctionbuildClaudeBodyFromChatRequest
( body: Record<string, unknown>, modelName: string )
src/lib/proxy/compat.ts:779
↓ 1 callersFunctionbuildClaudeBodyFromResponsesRequest
( body: Record<string, unknown>, modelName: string )
src/lib/proxy/compat.ts:801
↓ 1 callersFunctionbuildClaudeEndpoint
* Build Claude /v1/messages endpoint
src/lib/detection/strategies.ts:150
↓ 1 callersFunctionbuildClaudeEndpointWithThinking
( baseUrl: string, apiKey: string, modelName: string )
src/lib/detection/strategies.ts:181
↓ 1 callersFunctionbuildCodexEndpoint
* Build Codex /v1/responses endpoint * Uses OpenAI Responses API format (2025) * @see https://platform.openai.com/docs/api-reference/responses
src/lib/detection/strategies.ts:253
↓ 1 callersFunctionbuildEndpointDetection
( baseUrl: string, apiKey: string, modelName: string, endpointType: EndpointType )
src/lib/detection/strategies.ts:116
↓ 1 callersFunctionbuildGeminiBodyFromChatRequest
(body: Record<string, unknown>)
src/lib/proxy/compat.ts:844
↓ 1 callersFunctionbuildGeminiBodyFromResponsesRequest
(body: Record<string, unknown>)
src/lib/proxy/compat.ts:867
↓ 1 callersFunctionbuildGeminiEndpoint
* Build Gemini generateContent endpoint
src/lib/detection/strategies.ts:219
↓ 1 callersFunctionbuildImageEndpoint
* Build OpenAI /v1/images/generations endpoint for DALL-E and other image models
src/lib/detection/strategies.ts:318
↓ 1 callersFunctionbuildIntervalSchedule
( unit: IntervalUnit, value: number, startAtLocal: string, dayTimes: string[] )
src/components/dashboard/scheduler-modal.tsx:221
↓ 1 callersFunctionbuildResponsesFallbackBody
( body: Record<string, unknown>, modelName: string )
src/app/v1/chat/completions/route.ts:144
↓ 1 callersFunctionbuildResponsesFromChatCompletion
( payload: unknown, modelName: string )
src/app/v1/responses/route.ts:221
↓ 1 callersFunctionbuildResponsesFromClaude
(payload: unknown, modelName: string)
src/lib/proxy/compat.ts:902
↓ 1 callersFunctionbuildResponsesFromGemini
(payload: unknown, modelName: string)
src/lib/proxy/compat.ts:910
↓ 1 callersFunctionbuildUsageFromChat
(payload: unknown)
src/lib/proxy/compat.ts:494
↓ 1 callersFunctionbuildWebDAVHeaders
(config: WebDAVConfig)
src/lib/webdav/sync.ts:52
↓ 1 callersFunctionbuildWebDAVHeaders
(config: WebDAVConfig)
src/app/api/channel/webdav/route.ts:26
↓ 1 callersFunctionbuildWebDAVUrl
(config: WebDAVConfig)
src/lib/webdav/sync.ts:66
↓ 1 callersFunctionbuildWebDAVUrl
(config: WebDAVConfig)
src/app/api/channel/webdav/route.ts:40
↓ 1 callersFunctioncalcAcwScV2
(arg1: string, key: string)
src/app/api/channel/import-accounts/route.ts:35
↓ 1 callersFunctioncanFallbackClaudeMessagesToChat
(body: Record<string, unknown>)
src/app/v1/messages/route.ts:89
↓ 1 callersFunctioncheckRateLimit
(ip: string)
src/app/api/auth/login/route.ts:12
↓ 1 callersFunctioncheckVersion
()
src/components/layout/header.tsx:150
↓ 1 callersFunctioncleanupDetectionSessionIfIdle
(sessionId: string)
src/lib/queue/queue.ts:146
↓ 1 callersFunctionclearModelCancelled
(modelId: string)
src/lib/queue/queue.ts:525
↓ 1 callersFunctionclearSemaphoreKeys
()
src/lib/queue/worker.ts:255
↓ 1 callersFunctionclearTemporaryStoppedModelsByChannel
( channelId: string, credentialKey?: string )
src/lib/proxy/index.ts:444
↓ 1 callersFunctionconvertChatStreamToClaudeStream
(upstream: Response, modelName: string)
src/lib/proxy/compat.ts:1269
↓ 1 callersFunctionconvertChatStreamToResponsesStream
( upstream: Response, modelName: string )
src/app/v1/responses/route.ts:273
↓ 1 callersFunctionconvertClaudeStreamToChatStream
(upstream: Response, modelName: string)
src/lib/proxy/compat.ts:1026
↓ 1 callersFunctionconvertClaudeStreamToResponsesStream
(upstream: Response, modelName: string)
src/lib/proxy/compat.ts:1116
↓ 1 callersFunctionconvertResponsesStreamToChatStream
( upstream: Response, modelName: string )
src/app/v1/chat/completions/route.ts:293
↓ 1 callersFunctioncreatePrismaClient
()
src/lib/prisma.ts:8
↓ 1 callersFunctioncreatePubSubManager
()
src/lib/redis.ts:64
↓ 1 callersFunctioncreateRedisClient
()
src/lib/redis.ts:23
↓ 1 callersFunctioncreateSyntheticChatStreamResponse
(text: string, modelName: string)
src/lib/proxy/compat.ts:1423
↓ 1 callersFunctioncreateSyntheticClaudeStreamResponse
(text: string, modelName: string)
src/lib/proxy/compat.ts:1496
↓ 1 callersFunctioncreateSyntheticResponsesStreamResponse
(text: string, modelName: string)
src/lib/proxy/compat.ts:1432
↓ 1 callersFunctiondecode
(str: string)
src/app/api/channel/import-accounts/route.ts:74
↓ 1 callersFunctiondecodeBase64AsWasm
(wasmBase64: string)
src/generated/prisma/internal/class.ts:33
↓ 1 callersFunctiondecrementModelRemaining
(modelId: string)
src/lib/queue/queue.ts:559
↓ 1 callersFunctiondecrementModelRemainingBy
(modelId: string, count: number)
src/lib/queue/queue.ts:569
↓ 1 callersFunctiondeselectAllInChannel
(chId: string)
src/components/dashboard/model-filter-modal.tsx:310
↓ 1 callersFunctionensureParentDirectories
(baseUrl: string, filename: string, headers: HeadersInit)
src/lib/webdav/sync.ts:76
↓ 1 callersFunctionensureParentDirectories
(baseUrl: string, filename: string, headers: HeadersInit)
src/app/api/channel/webdav/route.ts:52
↓ 1 callersFunctionensureSubscriber
()
src/lib/redis.ts:82
↓ 1 callersFunctionevictRoundRobinCounters
()
src/lib/proxy/index.ts:61
↓ 1 callersFunctionevictTemporaryStopFallback
()
src/lib/proxy/index.ts:71
↓ 1 callersFunctionexecuteDetection
( job: DetectionJobData, options?: DetectionExecutionOptions )
src/lib/detection/detector.ts:370
↓ 1 callersFunctionextractArg1
(html: string)
src/app/api/channel/import-accounts/route.ts:58
↓ 1 callersFunctionextractChatText
(payload: unknown)
src/lib/proxy/compat.ts:521
↓ 1 callersFunctionextractChatText
(payload: unknown)
src/app/v1/responses/route.ts:193
↓ 1 callersFunctionextractKey
(html: string)
src/app/api/channel/import-accounts/route.ts:64
↓ 1 callersFunctionextractReadableMessage
(text: string)
src/components/dashboard/channel-card.tsx:106
↓ 1 callersFunctionextractResponsesText
(payload: unknown)
src/app/v1/chat/completions/route.ts:193
↓ 1 callersFunctionfetchApiKeys
(siteUrl: string, accessToken: string, userId?: number)
src/app/api/channel/import-accounts/route.ts:102
↓ 1 callersFunctionfetchModelCandidatesByName
( modelName: string, preferredEndpoint?: string, allowChannelPrefixFallback = true )
src/lib/proxy/index.ts:890
↓ 1 callersFunctionfetchRemoteVersion
()
src/app/api/version/route.ts:31
↓ 1 callersFunctionfetchStatus
()
src/components/layout/header.tsx:128
↓ 1 callersFunctionfilterTemporaryStoppedModelsForListing
( items: T[] )
src/lib/proxy/index.ts:238
↓ 1 callersFunctionfindChannelByUnifiedModel
( modelName: string, keyResult: ValidateKeyResult, preferredEndpoint?: string )
src/lib/proxy/index.ts:1563
↓ 1 callersFunctionfindNestedMessage
(value: unknown)
src/components/dashboard/channel-card.tsx:74
↓ 1 callersFunctionformatDate
(isoString: string | null)
src/components/dashboard/proxy-key-manager.tsx:242
↓ 1 callersFunctionformatMinutesToTime
(totalMinutes: number)
src/components/dashboard/scheduler-modal.tsx:67
↓ 1 callersFunctionformatNextRun
(isoString: string | null)
src/components/dashboard/scheduler-modal.tsx:428
↓ 1 callersFunctionformatRelativeTime
(dateStr: string)
src/components/dashboard/channel-card.tsx:1028
↓ 1 callersFunctionformatTemporaryStop
(value?: number, unit?: "second" | "minute" | "hour" | "day")
src/components/dashboard/proxy-key-manager.tsx:253
↓ 1 callersFunctionformatTime
(value: string)
src/components/dashboard/proxy-request-log.tsx:73
↓ 1 callersFunctiongetActualModelName
(modelName: string)
src/app/v1beta/models/[...path]/route.ts:44
↓ 1 callersFunctiongetActualModelName
(modelName: string)
src/app/v1/messages/route.ts:57
↓ 1 callersFunctiongetAllEndpoints
(channels: ChannelWithModels[])
src/components/ui/channel-model-selector.tsx:92
↓ 1 callersFunctiongetAllModelsWithChannels
(keyResult?: ValidateKeyResult)
src/lib/proxy/index.ts:1820
↓ 1 callersFunctiongetAllModelsWithChannelsUnified
(keyResult?: ValidateKeyResult)
src/lib/proxy/index.ts:1921
↓ 1 callersFunctiongetAttemptSummary
(log: ProxyRequestLogItem)
src/components/dashboard/proxy-request-log.tsx:114
↓ 1 callersFunctiongetAvailableDisplayEndpoints
(model: Model)
src/components/dashboard/channel-card.tsx:245
↓ 1 callersFunctiongetChannelBorderClass
(channel: Channel)
src/components/dashboard/channel-manager.tsx:101
↓ 1 callersFunctiongetDetectedOpenAIEndpoints
(detectedEndpoints: string[])
src/lib/utils/model-name.ts:137
↓ 1 callersFunctiongetDisplayHistoryLogs
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:751
↓ 1 callersFunctiongetFinalResultLabel
(log: ProxyRequestLogItem)
src/components/dashboard/proxy-request-log.tsx:109
↓ 1 callersFunctiongetGptVersion
(modelName: string)
src/lib/utils/model-name.ts:92
↓ 1 callersFunctiongetHttpProxyAgent
* Get or create a HTTP ProxyAgent for the given proxy URL
src/lib/utils/proxy-fetch.ts:101
↓ 1 callersFunctiongetLatestDisplayLog
(checkLogs: CheckLog[])
src/components/dashboard/channel-card.tsx:746
↓ 1 callersFunctiongetMetaValue
(metaSegments: string[], key: string)
src/components/dashboard/scheduler-modal.tsx:104
↓ 1 callersFunctiongetModelEndpoints
(model: ModelInfo)
src/components/ui/channel-model-selector.tsx:426
↓ 1 callersFunctiongetNextDetectionRunTime
()
src/lib/scheduler/cron.ts:462
↓ 1 callersFunctiongetNextRunTimeFromSchedule
(cronSchedule: string, timezone: string)
src/lib/scheduler/cron.ts:442
← previousnext →301–400 of 875, ranked by callers