MCPcopy
hub / github.com/CodebuffAI/codebuff / isFreeMode

Function isFreeMode

common/src/constants/free-agents.ts:141–143  ·  view source on GitHub ↗
(costMode: CostMode | string | undefined)

Source from the content-addressed store, hash-verified

139 * In FREE mode, agents using allowed models cost 0 credits.
140 */
141export function isFreeMode(costMode: CostMode | string | undefined): boolean {
142 return costMode === FREE_COST_MODE
143}
144
145export function isFreebuffRootAgent(fullAgentId: string): boolean {
146 const { publisherId, agentId } = parseAgentId(fullAgentId)

Callers 4

getModelForRequestFunction · 0.90
promptAiSdkStreamFunction · 0.90
consumeCreditsForMessageFunction · 0.90
postChatCompletionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected