MCPcopy
hub / github.com/openai/tiktoken / p50k_edit

Function p50k_edit

tiktoken_ext/openai_public.py:61–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def p50k_edit():
62 mergeable_ranks = load_tiktoken_bpe(
63 "https://openaipublic.blob.core.windows.net/encodings/p50k_base.tiktoken",
64 expected_hash="94b5ca7dff4d00767bc256fdd1b27e5b17361d7b8a5f968547f9f23eb70d2069",
65 )
66 special_tokens = {ENDOFTEXT: 50256, FIM_PREFIX: 50281, FIM_MIDDLE: 50282, FIM_SUFFIX: 50283}
67 return {
68 "name": "p50k_edit",
69 "pat_str": r50k_pat_str,
70 "mergeable_ranks": mergeable_ranks,
71 "special_tokens": special_tokens,
72 }
73
74
75def cl100k_base():

Callers

nothing calls this directly

Calls 1

load_tiktoken_bpeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…