MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / noneResponse

Function noneResponse

web/src/server/free-session/public-api.ts:584–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

582 // queue, plus per-user quota snapshots so exhausted models are visible
583 // before POST.
584 const noneResponse = async (): Promise<FreebuffSessionServerResponse> => {
585 const [queueDepthByModel, rateLimitsByModel] = await Promise.all([
586 deps.queueDepthsByModel(),
587 fetchRateLimitsByModel(params.userId, accessTier, deps),
588 ])
589 return {
590 status: 'none',
591 accessTier,
592 queueDepthByModel,
593 ...nonEmptyRateLimitsByModel(
594 onlyUsedRateLimitsByModel(rateLimitsByModel),
595 ),
596 }
597 }
598
599 if (!row) return noneResponse()
600

Callers 1

getSessionStateFunction · 0.85

Calls 3

fetchRateLimitsByModelFunction · 0.85

Tested by

no test coverage detected