* Counts tokens for content blocks * All providers extend BaseProvider which provides a default tiktoken implementation, * but they can override this to use their native token counting endpoints * * @param content The content to count tokens for * @returns A promise resolving to the token
(content: Array<Anthropic.Messages.ContentBlockParam>)
| 123 | * @returns A promise resolving to the token count |
| 124 | */ |
| 125 | countTokens(content: Array<Anthropic.Messages.ContentBlockParam>): Promise<number> |
| 126 | } |
| 127 | |
| 128 | export function buildApiHandler(configuration: ProviderSettings): ApiHandler { |
no outgoing calls
no test coverage detected