Skip to content

Commit

Permalink
Upgrade tokenizers library to the GA version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh committed Dec 2, 2024
1 parent 524f08c commit 2e9892a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class GPTTokenizer : ITokenizer
/// Creates an instance of `GPTTokenizer`
/// </summary>
/// <param name="model">model to encode/decode for</param>
public GPTTokenizer(string model) => this._encoding = TiktokenTokenizer.CreateForModel("gpt-4");
public GPTTokenizer(string model) => this._encoding = TiktokenTokenizer.CreateForModel(model);

/// <summary>
/// Encode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.22.9" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.ML.Tokenizers" Version="0.22.0-preview.24378.1" />
<PackageReference Include="Microsoft.ML.Tokenizers.Data.Cl100kBase" Version="1.0.0" />
<PackageReference Include="OpenAI" Version="2.1.0-beta.1" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 2e9892a

Please sign in to comment.