MCPcopy Create free account
hub / github.com/anomalyco/opencode / addRateLimitValue

Function addRateLimitValue

packages/llm/src/route/executor.ts:108–110  ·  view source on GitHub ↗
(target: Record<string, string>, key: string, value: string)

Source from the content-addressed store, hash-verified

106}
107
108const addRateLimitValue = (target: Record<string, string>, key: string, value: string) => {
109 if (key.length > 0) target[key] = value
110}
111
112const rateLimitDetails = (headers: Record<string, string>, retryAfter: number | undefined) => {
113 const limit: Record<string, string> = {}

Callers 1

rateLimitDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected