Tiktoken-compatible byte-pair encodings used by Obscura.
This module intentionally implements the subset of Python tiktoken that Obscura needs for privacy-filter tokenization. It does not fetch assets from the network at runtime.
Summary
Functions
Loads a supported encoding from verified local assets.
Lists the supported encoding names.
Types
@type encoding() :: Obscura.Tiktoken.Encoding.t()
Functions
Loads a supported encoding from verified local assets.
@spec list_encoding_names() :: [String.t()]
Lists the supported encoding names.