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

Function getRateLimitsByModel

common/src/types/freebuff-session.ts:42–48  ·  view source on GitHub ↗
(
  session: { status: string } | null | undefined,
)

Source from the content-addressed store, hash-verified

40 * client-only `takeover_prompt` variant) without a discriminated-union
41 * ceremony at every call site. */
42export const getRateLimitsByModel = (
43 session: { status: string } | null | undefined,
44): FreebuffSessionRateLimitByModel | undefined =>
45 session && 'rateLimitsByModel' in session
46 ? (session as { rateLimitsByModel?: FreebuffSessionRateLimitByModel })
47 .rateLimitsByModel
48 : undefined
49
50export type FreebuffCountryBlockReason =
51 | 'country_not_allowed'

Callers 6

FreebuffModelSelectorFunction · 0.90
SessionEndedBannerFunction · 0.90
WaitingRoomScreenFunction · 0.90
toLandingSessionFunction · 0.90
markFreebuffSessionEndedFunction · 0.90
tickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected