Expose p50k_edit encoding (#32)
This commit is contained in:
parent
fbaa86e0f0
commit
f5fbc9c5e9
@ -24,3 +24,5 @@ def test_encoding_for_model():
|
||||
assert enc.name == "gpt2"
|
||||
enc = tiktoken.encoding_for_model("text-davinci-003")
|
||||
assert enc.name == "p50k_base"
|
||||
enc = tiktoken.encoding_for_model("text-davinci-edit-001")
|
||||
assert enc.name == "p50k_edit"
|
||||
|
@ -84,4 +84,5 @@ ENCODING_CONSTRUCTORS = {
|
||||
"r50k_base": r50k_base,
|
||||
"p50k_base": p50k_base,
|
||||
"cl100k_base": cl100k_base,
|
||||
"p50k_edit": p50k_edit,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user