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

Function isFreebuffModelAvailable

common/src/constants/freebuff-models.ts:273–280  ·  view source on GitHub ↗
(
  id: string,
  now: Date = new Date(),
)

Source from the content-addressed store, hash-verified

271}
272
273export function isFreebuffModelAvailable(
274 id: string,
275 now: Date = new Date(),
276): boolean {
277 const model = SUPPORTED_FREEBUFF_MODELS.find((m) => m.id === id)
278 if (!model) return false
279 return model.availability === 'always' || isFreebuffDeploymentHours(now)
280}
281
282export function resolveAvailableFreebuffModel(
283 id: string | null | undefined,

Callers 4

FreebuffModelSelectorFunction · 0.90
requestSessionFunction · 0.90
runAdmissionTickFunction · 0.90

Calls 1

Tested by

no test coverage detected