MCPcopy Create free account

hub / github.com/diegosouzapw/OmniRoute / functions

Functions20,485 in github.com/diegosouzapw/OmniRoute

↓ 36 callersFunctionclearModelLock
( provider: string, connectionId: string, model: string | null | undefined )
open-sse/services/accountFallback.ts:605
↓ 36 callersFunctiongetCloudAgentCorsHeaders
(request?: Request)
src/lib/cloudAgent/api.ts:8
↓ 36 callersFunctiongetComboMetrics
(comboName: string)
open-sse/services/comboMetrics.ts:407
↓ 36 callersFunctionhasSpecializedExecutor
(provider)
open-sse/executors/index.ts:167
↓ 36 callersFunctionproviderSupportsCaching
( provider: string | null | undefined, targetFormat?: string | null )
open-sse/utils/cacheControlPolicy.ts:160
↓ 36 callersFunctionrecordModelLockoutFailure
( provider: string, connectionId: string, model: string, reason: string, status: number, fallbackC
open-sse/services/accountFallback.ts:536
↓ 36 callersFunctionsanitizeMemoryLimit
* Replicate the memory sanitization logic from bin/omniroute.mjs
tests/unit/cli-memory.test.ts:20
↓ 35 callersFunctionapplyCustomUserAgent
( headers: Record<string, string>, providerSpecificData: any = {} )
src/lib/providers/validation/headers.ts:16
↓ 35 callersFunctionassertSecurityInvariants
Assert security invariants on every generated snippet.
tests/unit/playground-code-export.test.ts:11
↓ 35 callersFunctionbuildDiscoveryFallbackResponse
({ cacheWarning = "API unavailable — using cached catalog", localWarning = "API unavailable — usin
src/app/api/providers/[id]/models/route.ts:291
↓ 35 callersFunctioncreateErrorResponseFromUnknown
( error: unknown, fallbackMessage = "Unexpected server error" )
src/lib/api/errorResponse.ts:37
↓ 35 callersMethodgetStatus
(externalId: string, credentials: AgentCredentials)
src/lib/cloudAgent/agents/devin.ts:59
↓ 35 callersFunctionseedApiKey
({ name = "chat-pipeline-key", noLog = false, allowedConnections, allowedModels, }: SeedApiKeyOptions
tests/integration/chat-pipeline.test.ts:399
↓ 35 callersMethodstop
()
tests/helpers/faultyUpstream.ts:15
↓ 35 callersFunctiontoInteger
( value: unknown, fallback: number, options: { min?: number; max?: number } = {} )
src/lib/resilience/settings/normalize.ts:29
↓ 35 callersFunctiontoStringOrNull
(value: unknown)
src/lib/combos/builderOptions.ts:136
↓ 34 callersFunctionasRecord
(value: unknown)
open-sse/utils/streamPayloadCollector.ts:38
↓ 34 callersFunctionbuildKiroPayload
(model, body, stream, credentials)
open-sse/translator/request/openai-to-kiro.ts:671
↓ 34 callersFunctionbuildOpenAIResponse
(stream, text = "ok")
tests/unit/chatcore-translation-paths.test.ts:86
↓ 34 callersFunctionevaluate
(_ctx: PolicyContext)
src/server/authz/policies/public.ts:6
↓ 34 callersFunctionisBucketSaturated
( connectionId: string, windowKey: string, nowMs: number = Date.now() )
src/lib/quota/accountBuckets.ts:100
↓ 34 callersFunctionnormalizeBaseUrl
(baseUrl: string)
src/lib/providers/validation/urlHelpers.ts:13
↓ 34 callersFunctionopenaiToOpenAIResponsesRequest
( model: unknown, body: unknown, stream: unknown, credentials: unknown )
open-sse/translator/request/openai-responses.ts:575
↓ 34 callersFunctionsetFeatureFlagOverride
(key: string, value: string)
src/lib/db/featureFlags.ts:45
↓ 34 callersFunctiontoString
(value: unknown)
open-sse/handlers/responseSanitizer.ts:52
↓ 34 callersFunctiontoString
(value: unknown, fallback = "")
open-sse/mcp-server/tools/advancedTools.ts:75
↓ 33 callersMethodgetPool
()
open-sse/executors/base.ts:473
↓ 33 callersFunctionisModelLocked
( provider: string, connectionId: string, model: string | null | undefined )
open-sse/services/accountFallback.ts:724
↓ 33 callersFunctionisServerUp
(opts = {})
bin/cli/api.mjs:257
↓ 33 callersFunctionmakeTarget
( executionKey: string, connectionId: string, weight = 100, modelStr = "anthropic/claude-sonnet-4-5" )
tests/unit/quota-share-strategy.test.ts:43
↓ 33 callersMethodopen
* Register a freshly-opened h2 stream as the session for this conversation. * Any pre-existing session for the same conversation is closed first.
open-sse/services/cursorSessionManager.ts:79
↓ 33 callersFunctionprintSuccess
(message)
bin/cli/io.mjs:73
↓ 33 callersFunctionredactString
(input)
scripts/sre/redact-logs.mjs:139
↓ 33 callersFunctionsafeOutboundFetch
(url: string | URL, options: SafeOutboundFetchOptions = {})
src/shared/network/safeOutboundFetch.ts:269
↓ 33 callersFunctionshouldPreserveCacheControl
({ userAgent, isCombo, comboStrategy, targetProvider, targetFormat, settings, }: { userAgent: st
open-sse/utils/cacheControlPolicy.ts:191
↓ 33 callersFunctiontoStringOrNull
(value: unknown)
src/app/api/internal/codex-responses-ws/route.ts:44
↓ 32 callersFunctioncheckIP
(ip)
open-sse/services/ipFilter.ts:62
↓ 32 callersFunctioncountConfigured
(entries: ProviderEntry<T>[])
src/app/(dashboard)/dashboard/providers/page.tsx:65
↓ 32 callersFunctiondetectMalformedNonStream
(resp: unknown)
open-sse/utils/diagnostics.ts:175
↓ 32 callersFunctionestimateSizeFast
(value: unknown)
open-sse/utils/estimateSize.ts:6
↓ 32 callersFunctionfetchConnections
()
src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx:348
↓ 32 callersFunctiongetAccessToken
(id: string)
src/lib/db/accessTokens.ts:161
↓ 32 callersFunctiongetModelIsHidden
(providerId: string, modelId: string)
src/lib/db/models.ts:773
↓ 32 callersFunctiongetUsageForProvider
(connection)
src/lib/usage/fetcher.ts:30
↓ 32 callersFunctionisJsonObject
(value: unknown)
open-sse/utils/kieTask.ts:13
↓ 32 callersFunctionmakeModelEntry
(overrides: Partial<ArenaModelEntry> = {})
tests/unit/arena-elo-sync.test.ts:67
↓ 32 callersFunctionprepareClaudeRequest
( body: ClaudeRequestBody, provider: string | null = null, preserveCacheControl = false, model: string
open-sse/translator/helpers/claudeHelper.ts:221
↓ 32 callersFunctionresetStorage
()
tests/integration/api-keys.test.ts:23
↓ 32 callersFunctionvalidateResponseQuality
( response: Response, isStreaming: boolean, log: { warn?: (...args: unknown[]) => void }, responseVali
open-sse/services/combo/validateQuality.ts:61
↓ 32 callersFunctionvalidationRead
(url: string, init: RequestInit, isLocal: boolean = false)
src/lib/providers/validation/transport.ts:65
↓ 31 callersFunctionL
(key: string, fallback: string)
src/app/(dashboard)/dashboard/settings/components/AccessTokensTab.tsx:27
↓ 31 callersFunctionasRecord
(value)
tests/unit/call-log-detailed-tokens.test.ts:17
↓ 31 callersFunctionassertContains
(haystack: string, needle: string, msg?: string)
tests/unit/services/htmlRewriter.test.ts:19
↓ 31 callersFunctionbuildModels
(ids: readonly string[])
open-sse/config/providers/shared.ts:251
↓ 31 callersFunctionclaudeToOpenAIRequest
(model, body, stream, credentials: unknown = null)
open-sse/translator/request/claude-to-openai.ts:93
↓ 31 callersFunctionencodeString
(fieldNumber: number, value: string)
open-sse/utils/cursorAgentProtobuf/wire.ts:35
↓ 31 callersFunctionensureCliConfigWriteAllowed
()
src/shared/services/cliRuntime.ts:905
↓ 31 callersFunctionestimateCompressionTokens
(text: string | object | null | undefined)
open-sse/services/compression/stats.ts:13
↓ 31 callersFunctiongetAuditRequestContext
(request?: { headers?: Headers | { get?: (name: string) => string | null }; socket?: { remoteAddress?: str
src/lib/compliance/index.ts:299
↓ 31 callersFunctionhttpRequest
( url: string, method = "GET", body?: string )
tests/integration/obsidian-plugin-e2e.test.ts:192
↓ 31 callersFunctionline
(s = "")
scripts/ad-hoc/nvidia-startswith-diag.ts:27
↓ 31 callersFunctionsse
* Regression guards for #5786 — streaming claude→codex. * * A Claude/Anthropic-format client (source_format=claude, e.g. Claude Code) routed * to a
tests/unit/streaming-reasoning-dedup-5786.test.ts:28
↓ 31 callersFunctiontoNumber
(value: unknown, fallback = 0)
src/lib/db/domainState.ts:65
↓ 31 callersMethodvalidateConfig
(config: Record<string, unknown>)
open-sse/services/compression/engines/types.ts:70
↓ 30 callersFunctionbuildOpenAIResponse
(text = "ok", model = "gpt-4o-mini", usage = null)
tests/integration/chat-pipeline.test.ts:101
↓ 30 callersFunctioncacheReasoning
( toolCallId: string, provider: string, model: string, reasoning: string )
open-sse/services/reasoningCache.ts:175
↓ 30 callersFunctioncreateBatch
( batch: Omit< BatchRecord, | "id" | "createdAt" | "requestCountsTotal" | "requestCounts
src/lib/db/batches.ts:121
↓ 30 callersFunctioncreateOmniRouteProviderHook
( opts?: OmniRoutePluginOptions, deps: { fetcher?: OmniRouteModelsFetcher; combosFetcher?: OmniRou
@omniroute/opencode-plugin/src/index.ts:2404
↓ 30 callersFunctioncreateProviderConnection
(data: JsonRecord)
src/lib/db/providers.ts:132
↓ 30 callersFunctiondecrypt
(ciphertext: string | null | undefined)
src/lib/db/encryption.ts:150
↓ 30 callersFunctiongetFieldValue
(source: unknown, snakeKey: string, camelKey: string)
open-sse/services/usage/scalars.ts:40
↓ 30 callersFunctiongetRulesForContext
( context: string, intensity: "lite" | "full" | "ultra" = "full", language = "en" )
open-sse/services/compression/cavemanRules.ts:394
↓ 30 callersFunctionmakeInput
(initialProvider: Record<string, unknown> = {})
@omniroute/opencode-plugin/tests/config-shim.test.ts:194
↓ 30 callersFunctionmergeResilienceSettings
( current: ResilienceSettings, updates: ResilienceSettingsPatch )
src/lib/resilience/settings.ts:309
↓ 30 callersFunctionnewStreamCtx
(model: string, emit: (chunk: string) => void)
open-sse/executors/cursor.ts:422
↓ 30 callersMethodrelease
Decrement inflight counter
open-sse/services/sessionPool/session.ts:88
↓ 30 callersFunctionresolveActiveContext
(overrideName)
bin/cli/contexts.mjs:52
↓ 30 callersFunctionsaveImageErrorResult
({ provider, model, status, startTime, error, requestBody = null })
open-sse/handlers/imageGeneration.ts:2404
↓ 30 callersFunctionstringValue
(value: unknown)
open-sse/executors/commandCode.ts:27
↓ 30 callersFunctionsupportsXHighEffort
(aliasOrId: string, modelId: string)
open-sse/config/providerModels.ts:175
↓ 30 callersFunctiontoRecord
(value: unknown)
open-sse/handlers/responseTranslator.ts:11
↓ 30 callersFunctiontoRecord
(value: unknown)
open-sse/mcp-server/tools/advancedTools.ts:67
↓ 30 callersFunctiontoString
(value: unknown)
src/lib/monitoring/providerHealthAutopilot.ts:112
↓ 30 callersFunctiontrackPendingRequest
( model: string, provider: string, connectionId: string | null, started: boolean, metadata?: Pending
src/lib/usage/usageHistory.ts:230
↓ 30 callersFunctionwithMockedMigrationFs
(files, fn)
tests/unit/db-migration-runner.test.ts:15
↓ 29 callersFunctionapplyRulesToText
( text: string, rules: CavemanRule[] )
open-sse/services/compression/caveman.ts:175
↓ 29 callersFunctionapplyStackedCompression
( body: Record<string, unknown>, pipeline?: Array<CompressionPipelineStep | string>, options?: StackOpti
open-sse/services/compression/strategySelector.ts:807
↓ 29 callersFunctioncavemanCompress
( body: ChatRequestBody, options?: Partial<CavemanConfig> )
open-sse/services/compression/caveman.ts:445
↓ 29 callersFunctiongetHeaderValueCaseInsensitive
( headers: Record<string, unknown> | Headers | null | undefined, targetName: string )
open-sse/handlers/chatCore/headers.ts:1
↓ 29 callersFunctiongetProviderConnectionById
(id: string)
src/lib/db/providers.ts:79
↓ 29 callersFunctioninjectMemory
( request: ChatRequest, memories: Memory[], provider: string | null | undefined, options: InjectMemory
src/lib/memory/injection.ts:95
↓ 29 callersFunctionisPlainObject
(value: unknown)
open-sse/translator/helpers/schemaCoercion.ts:27
↓ 29 callersFunctionresetCcrStore
()
open-sse/services/compression/engines/ccr/index.ts:182
↓ 29 callersFunctionseedConnection
(provider: string, overrides: Record<string, unknown> = {})
tests/unit/vscode-token-routes.test.ts:39
↓ 29 callersFunctionstubReadAuthJson
( value: Record<string, unknown> | undefined | null )
@omniroute/opencode-plugin/tests/config-shim.test.ts:92
↓ 29 callersFunctiontoNumber
(value: unknown)
src/lib/usage/routeExplain.ts:197
↓ 29 callersFunctiontoRecord
(value: unknown)
open-sse/translator/request/openai-responses.ts:34
↓ 29 callersFunctiontoString
(value: unknown, fallback = "")
open-sse/handlers/responseTranslator.ts:15
↓ 29 callersFunctiontoString
(value, fallback = "")
open-sse/handlers/sseParser.ts:147
↓ 29 callersFunctiontoTrimmedString
(value: unknown)
src/lib/combos/steps.ts:53
← previousnext →201–300 of 20,485, ranked by callers