Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abetlen/llama-cpp-python
/ completion_token_count
Method
completion_token_count
examples/server/server.py:3837–3838 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3835
3836
@property
3837
def
completion_token_count(self) -> int:
3838
return
len(self.completion_tokens)
3839
3840
@property
3841
def
needs_token_logprob(self) -> bool:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected