Skip to content

Commit 28d1276

Browse files
authored
Merge pull request #64 from github/dependabot/cargo/tiktoken-rs-0.7
Update tiktoken-rs requirement from 0.6 to 0.7
2 parents f2cef70 + fac290e commit 28d1276

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

crates/bpe-openai/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ unicode-normalization = "0.1"
2121

2222
[dev-dependencies]
2323
bpe = { version = "0.2", path = "../bpe", features = ["rand"] }
24-
tiktoken-rs = "0.6"
24+
tiktoken-rs = "0.7"
2525

2626
[build-dependencies]
2727
base64 = "0.22"

crates/bpe-openai/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ mod tests {
242242

243243
#[test]
244244
fn test_cl100k() {
245-
test_equivalence(cl100k_base(), &cl100k_base_singleton().lock());
245+
test_equivalence(cl100k_base(), cl100k_base_singleton());
246246
}
247247

248248
#[test]
249249
fn test_o200k() {
250-
test_equivalence(o200k_base(), &o200k_base_singleton().lock());
250+
test_equivalence(o200k_base(), o200k_base_singleton());
251251
}
252252

253253
#[track_caller]

crates/bpe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ serde = { version = "1", features = ["derive"] }
2626

2727
[dev-dependencies]
2828
bpe = { path = "." }
29-
tiktoken-rs = "0.6"
29+
tiktoken-rs = "0.7"
3030

3131
[package.metadata.docs.rs]
3232
all-features = true

crates/bpe/benchmarks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ bpe = { path = "../../bpe", features = ["rand", "tiktoken"] }
2222
bpe-openai = { path = "../../bpe-openai" }
2323
criterion = "0.6"
2424
rand = "0.9"
25-
tiktoken-rs = "0.6"
25+
tiktoken-rs = "0.7"
2626
tokenizers = { version = "0.21", features = ["http"] }

crates/bpe/tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ bpe = { path = "../../bpe", features = ["rand"] }
77
bpe-openai = { path = "../../bpe-openai" }
88
itertools = "0.14"
99
rand = "0.9"
10-
tiktoken-rs = "0.6"
10+
tiktoken-rs = "0.7"

crates/bpe/tests/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ mod tests {
8989
.unwrap();
9090
let bpe = &cl100k_base().bpe;
9191
let encoded1 = cl100k_base_singleton()
92-
.lock()
9392
.encode_ordinary(input)
9493
.into_iter()
9594
.collect_vec();

0 commit comments

Comments
 (0)