MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / count_tokens

Method count_tokens

tests/test_json_plugin.py:31–32  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

29 def generate_json(self, *args, **kwargs):
30 return {"mocked": "result"}
31 def count_tokens(self, text):
32 return len(text.split())
33 def extract_schema_from_response_format(*args):
34 return None
35 def run(*args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected