tiktoken_ruby 0.0.12-x64-mingw-ucrt → 0.0.13-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 779cae4821cc95ad89396f6b6858333913c82694c37915e55c26eeaae5cd04b1
4
- data.tar.gz: 4cfd182bfad73e6a82c8ba2e365b439edb89c04083dc87ef5877032b2ed6da30
3
+ metadata.gz: 2094cd85b73d01276dae06d9da3cf76947e2dc32b4ffff030078051e92ba4301
4
+ data.tar.gz: 64c9e5a74182c2e407c6896bd9898cb813bdaaef1dcfc4e799ce05c622c335ac
5
5
  SHA512:
6
- metadata.gz: 7075e5111a25948d137445247289ed1a898f6cef7de1873c7e12d0d46213ceb2fae993ae80c14aca663e574379a14dad7e850b4985f878e4c2488ed3d324c752
7
- data.tar.gz: a435626aabba541d6d1c45356e78b9f1660a9f73d1c18d1482ee200bf4c167f026e624a2a2ef354beabe7d59cf726d0dca12b83ee23a741f97272c6f809e3e47
6
+ metadata.gz: 940fc0b7dae9aa2e7c9ddc142e5bfd630868d09e3875093cecc820b0d18bbe134f5e6854a09fc74af0d72a29351e3d36159ba61c2cbe518652ac35c52381a4de
7
+ data.tar.gz: 57cc9306b1b66cc4d8e539f229213f288a57c8b87129dbf43eddc53343e05f81bbdd9e89c7f568932bf3058322143e859507d59f5fa7d58c814331534d00c144
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tiktoken_ruby (0.0.12)
4
+ tiktoken_ruby (0.0.13)
5
5
  rb_sys (~> 0.9)
6
6
 
7
7
  GEM
@@ -9,38 +9,38 @@ GEM
9
9
  specs:
10
10
  ast (2.4.3)
11
11
  diff-lcs (1.6.2)
12
- json (2.12.0)
12
+ json (2.15.0)
13
13
  language_server-protocol (3.17.0.5)
14
14
  lint_roller (1.1.0)
15
15
  minitest (5.25.5)
16
16
  parallel (1.27.0)
17
- parser (3.3.8.0)
17
+ parser (3.3.9.0)
18
18
  ast (~> 2.4.1)
19
19
  racc
20
- prism (1.4.0)
20
+ prism (1.5.1)
21
21
  racc (1.8.1)
22
22
  rainbow (3.1.1)
23
- rake (13.3.0)
23
+ rake (13.3.1)
24
24
  rake-compiler (1.3.0)
25
25
  rake
26
26
  rake-compiler-dock (1.9.1)
27
27
  rb_sys (0.9.117)
28
28
  rake-compiler-dock (= 1.9.1)
29
- regexp_parser (2.10.0)
30
- rspec (3.13.1)
29
+ regexp_parser (2.11.3)
30
+ rspec (3.13.2)
31
31
  rspec-core (~> 3.13.0)
32
32
  rspec-expectations (~> 3.13.0)
33
33
  rspec-mocks (~> 3.13.0)
34
- rspec-core (3.13.5)
34
+ rspec-core (3.13.6)
35
35
  rspec-support (~> 3.13.0)
36
36
  rspec-expectations (3.13.5)
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
38
  rspec-support (~> 3.13.0)
39
- rspec-mocks (3.13.5)
39
+ rspec-mocks (3.13.7)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
41
  rspec-support (~> 3.13.0)
42
- rspec-support (3.13.5)
43
- rubocop (1.75.7)
42
+ rspec-support (3.13.6)
43
+ rubocop (1.80.2)
44
44
  json (~> 2.3)
45
45
  language_server-protocol (~> 3.17.0.2)
46
46
  lint_roller (~> 1.1.0)
@@ -48,10 +48,10 @@ GEM
48
48
  parser (>= 3.3.0.2)
49
49
  rainbow (>= 2.2.2, < 4.0)
50
50
  regexp_parser (>= 2.9.3, < 3.0)
51
- rubocop-ast (>= 1.44.0, < 2.0)
51
+ rubocop-ast (>= 1.46.0, < 2.0)
52
52
  ruby-progressbar (~> 1.7)
53
53
  unicode-display_width (>= 2.4.0, < 4.0)
54
- rubocop-ast (1.44.1)
54
+ rubocop-ast (1.47.1)
55
55
  parser (>= 3.3.7.2)
56
56
  prism (~> 1.4)
57
57
  rubocop-performance (1.25.0)
@@ -59,10 +59,10 @@ GEM
59
59
  rubocop (>= 1.75.0, < 2.0)
60
60
  rubocop-ast (>= 1.38.0, < 2.0)
61
61
  ruby-progressbar (1.13.0)
62
- standard (1.50.0)
62
+ standard (1.51.1)
63
63
  language_server-protocol (~> 3.17.0.2)
64
64
  lint_roller (~> 1.0)
65
- rubocop (~> 1.75.5)
65
+ rubocop (~> 1.80.2)
66
66
  standard-custom (~> 1.0.0)
67
67
  standard-performance (~> 1.8)
68
68
  standard-custom (1.0.2)
@@ -71,9 +71,9 @@ GEM
71
71
  standard-performance (1.8.0)
72
72
  lint_roller (~> 1.1)
73
73
  rubocop-performance (~> 1.25.0)
74
- unicode-display_width (3.1.4)
75
- unicode-emoji (~> 4.0, >= 4.0.4)
76
- unicode-emoji (4.0.4)
74
+ unicode-display_width (3.2.0)
75
+ unicode-emoji (~> 4.1)
76
+ unicode-emoji (4.1.0)
77
77
  yard (0.9.37)
78
78
  yard-doctest (0.1.17)
79
79
  minitest
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tiktoken
4
- VERSION = "0.0.12"
4
+ VERSION = "0.0.13"
5
5
  end
data/lib/tiktoken_ruby.rb CHANGED
@@ -65,7 +65,8 @@ module Tiktoken
65
65
  :p50k_base,
66
66
  :p50k_edit,
67
67
  :cl100k_base,
68
- :o200k_base
68
+ :o200k_base,
69
+ :o200k_harmony
69
70
  ]
70
71
 
71
72
  # taken from the python library here https://github.com/openai/tiktoken/blob/main/tiktoken/model.py
@@ -143,6 +144,7 @@ module Tiktoken
143
144
  "gpt-4-": "cl100k_base", # e.g., gpt-4-0314, etc., plus gpt-4-32k
144
145
  "gpt-3.5-turbo-": "cl100k_base", # e.g, gpt-3.5-turbo-0301, -0401, etc.
145
146
  "gpt-35-turbo-": "cl100k_base", # Azure deployment name
147
+ "gpt-oss-": "o200k_harmony",
146
148
  # fine-tuned
147
149
  "ft:gpt-4o": "cl100k_base",
148
150
  "ft:gpt-4": "cl100k_base",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiktoken_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - IAPark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-11-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An unofficial Ruby wrapper for Tiktoken, a BPE tokenizer written by and
14
14
  used by OpenAI. It can be used to count the number of tokens in text before sending