Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/tiktoken
/ _encode_bytes
Method
_encode_bytes
tiktoken/core.py:406–407 ·
view source on GitHub ↗
(self, text: bytes)
Source
from the content-addressed store, hash-verified
404
return
ret
405
406
def
_encode_bytes(self, text: bytes) -> list[int]:
407
return
self._core_bpe._encode_bytes(text)
408
409
def
__getstate__(self) -> object:
410
import
tiktoken.registry
Callers
2
test_encode_bytes
Function · 0.80
test_hyp_encode_bytes
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_encode_bytes
Function · 0.64
test_hyp_encode_bytes
Function · 0.64