MCPcopy Create free account
hub / github.com/WeixiangYAN/ClinicalLab / count_tokens

Method count_tokens

code/inference/evaluators/spark3.py:35–36  ·  view source on GitHub ↗
(self, prompt)

Source from the content-addressed store, hash-verified

33
34 @retry(wait=wait_random_exponential(min=1, max=60), stop=stop_after_attempt(6))
35 def count_tokens(self, prompt):
36 return round((len(prompt) * 2) / 3)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected