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

Function nonEmptyRateLimitsByModel

web/src/server/free-session/public-api.ts:199–203  ·  view source on GitHub ↗
(
  rateLimitsByModel: Record<string, FreebuffSessionRateLimit>,
)

Source from the content-addressed store, hash-verified

197}
198
199function nonEmptyRateLimitsByModel(
200 rateLimitsByModel: Record<string, FreebuffSessionRateLimit>,
201): { rateLimitsByModel: Record<string, FreebuffSessionRateLimit> } | {} {
202 return Object.keys(rateLimitsByModel).length > 0 ? { rateLimitsByModel } : {}
203}
204
205export interface SessionDeps {
206 getSessionRow: (userId: string) => Promise<InternalSessionRow | null>

Callers 2

attachRateLimitFunction · 0.85
noneResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected