Skip to content

Commit

Permalink
Merge pull request #102 from HugoRamosEs/@hramos/update-modelinfo
Browse files Browse the repository at this point in the history
Added new model `gpt-4-turbo` to `ModelInfo`.
  • Loading branch information
HugoRamosEs authored Apr 10, 2024
2 parents d0ccbb2 + 572a908 commit 8d58a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Previous classification is not required if changes are simple or all belong to t
- Some boy scouting and typo fixes in comments.
- Added new extension method to add Qdrant and Azure Search AI as Keyed Memory Store.
- Added new function to delete chat messages history in `ChatWithHistoryPlugin`.
- Added new model `gpt-4-turbo` to `ModelInfo`.

### Important

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<PropertyGroup>
<VersionPrefix>8.1.5</VersionPrefix>
<VersionSuffix>preview-14</VersionSuffix>
<VersionSuffix>preview-15</VersionSuffix>
</PropertyGroup>

<!--
Expand Down
1 change: 1 addition & 0 deletions src/Encamina.Enmarcha.AI.OpenAI.Abstractions/ModelInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public sealed class ModelInfo
{ @"gpt-3.5-turbo", new ModelInfo() { Id = @"gpt-3.5-turbo", MaxTokens = 4096, Encoding = @"cl100k_base", IsObsolete = false } },
{ @"gpt-4", new ModelInfo() { Id = @"gpt-4", MaxTokens = 8192, Encoding = @"cl100k_base", IsObsolete = false } },
{ @"gpt-4-32k", new ModelInfo() { Id = @"gpt-4", MaxTokens = 32768, Encoding = @"cl100k_base", IsObsolete = false } },
{ @"gpt-4-turbo", new ModelInfo() { Id = @"gpt-4", MaxTokens = 128000, Encoding = @"cl100k_base", IsObsolete = false } },
{ @"text-davinci-001", new ModelInfo() { Id = @"text-davinci-001", MaxTokens = 2049, Encoding = @"r50k_base", IsObsolete = true } },
{ @"text-davinci-002", new ModelInfo() { Id = @"text-davinci-002", MaxTokens = 4097, Encoding = @"p50k_base", IsObsolete = true } },
{ @"text-davinci-003", new ModelInfo() { Id = @"text-davinci-003", MaxTokens = 4097, Encoding = @"p50k_base", IsObsolete = true } },
Expand Down

0 comments on commit 8d58a2e

Please sign in to comment.