From 2e9892aec818c84acd785dcf8aa4cf70b5547575 Mon Sep 17 00:00:00 2001 From: Tarek Mahmoud Sayed Date: Mon, 2 Dec 2024 10:06:52 -0800 Subject: [PATCH] Upgrade tokenizers library to the GA version 1.0.0 --- .../Microsoft.TeamsAI/AI/Tokenizers/GPTTokenizer.cs | 2 +- .../Microsoft.TeamsAI/Microsoft.Teams.AI.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Tokenizers/GPTTokenizer.cs b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Tokenizers/GPTTokenizer.cs index 72b6e52cd..ab140f8b8 100644 --- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Tokenizers/GPTTokenizer.cs +++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Tokenizers/GPTTokenizer.cs @@ -24,7 +24,7 @@ public class GPTTokenizer : ITokenizer /// Creates an instance of `GPTTokenizer` /// /// model to encode/decode for - public GPTTokenizer(string model) => this._encoding = TiktokenTokenizer.CreateForModel("gpt-4"); + public GPTTokenizer(string model) => this._encoding = TiktokenTokenizer.CreateForModel(model); /// /// Encode diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Microsoft.Teams.AI.csproj b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Microsoft.Teams.AI.csproj index 5550baf0c..d8f4dbba4 100644 --- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Microsoft.Teams.AI.csproj +++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Microsoft.Teams.AI.csproj @@ -45,9 +45,9 @@ - + - +