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

Method __init__

optillm/inference.py:1690–1694  ·  view source on GitHub ↗
(self, prompt_tokens: int, completion_tokens: int, total_tokens: int, reasoning_tokens: int = 0)

Source from the content-addressed store, hash-verified

1688
1689class ChatCompletionUsage:
1690 def __init__(self, prompt_tokens: int, completion_tokens: int, total_tokens: int, reasoning_tokens: int = 0):
1691 self.prompt_tokens = prompt_tokens
1692 self.completion_tokens = completion_tokens
1693 self.total_tokens = total_tokens
1694 self.reasoning_tokens = reasoning_tokens
1695
1696class ChatCompletion:
1697 def __init__(self, response_dict: Dict):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected