MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / countTokens

Function countTokens

out/cli.cjs:79567–79570  ·  view source on GitHub ↗
(apiKey, model, params, singleRequestOptions)

Source from the content-addressed store, hash-verified

79565 }).catch((e3) => {
79566 if (e3.message !== SILENT_ERROR) {
79567 console.error(e3);
79568 }
79569 });
79570 return streamPromise;
79571 }
79572};
79573async function countTokens(apiKey, model, params, singleRequestOptions) {

Callers 1

countTokensMethod · 0.85

Calls 2

makeModelRequestFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected