Skip to content

Commit 7530adf

Browse files
committed
Add patch for tiktoken
1 parent 3817469 commit 7530adf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[rules]]
2+
version = '== 0.7.0'
3+
patch = 'tiktoken-0.7.0.patch'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Cargo.toml b/Cargo.toml
2+
index 4efb156..8ed776c 100644
3+
--- a/Cargo.toml
4+
+++ b/Cargo.toml
5+
@@ -9,7 +9,7 @@ name = "_tiktoken"
6+
crate-type = ["cdylib"]
7+
8+
[dependencies]
9+
-pyo3 = { version = "0.20.0", features = ["extension-module"] }
10+
+pyo3 = { git = "https://github.com/timfel/pyo3.git", branch = "v0.20.3.graalpy", features = ["extension-module"] }
11+
12+
# tiktoken dependencies
13+
fancy-regex = "0.11.0"

0 commit comments

Comments
 (0)