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

Function isClaudeModel

common/src/constants/anthropic.ts:44–46  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

42}
43
44export function isClaudeModel(model: string): boolean {
45 return model.startsWith('anthropic/') || model.startsWith('claude-')
46}
47
48/**
49 * Convert an OpenRouter model ID to an Anthropic model ID.

Callers 1

countTokensViaAnthropicFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected