Skip to content

Commit

Permalink
feat: Updated Gpt35Turbo alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Feb 23, 2024
1 parent 3bbc8fe commit 9e423f4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<PropertyGroup Label="Nuget">
<Version>2.0.0-alpha.9</Version>
<Version>2.0.0-alpha.10</Version>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Authors>tryAGI and contributors</Authors>
Expand Down
18 changes: 0 additions & 18 deletions src/libs/OpenAI.Constants/Chat/ChatModels.3.5.Turbo.16k.cs

This file was deleted.

24 changes: 18 additions & 6 deletions src/libs/OpenAI.Constants/Chat/ChatModels.3.5.Turbo.Legacy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ namespace OpenAI.Constants;
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
internal const string Gpt35Turbo_0301Id = "gpt-3.5-turbo-0301";

/// <inheritdoc cref="Gpt35Turbo_16k_0613Id"/>
/// <remarks>Alias - Currently points to gpt-3.5-turbo-16k-0613.</remarks>
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
internal const string Gpt35Turbo_16kId = "gpt-3.5-turbo-16k";

/// <inheritdoc cref="Gpt35Turbo_0613Id"/>
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
public static ChatModels Gpt35Turbo_0613 { get; } = new(
Expand All @@ -39,6 +44,14 @@ namespace OpenAI.Constants;
PricePerInputTokenInUsd: 0.0015 * 0.001,
PricePerOutputTokenInUsd: 0.0020 * 0.001);

/// <inheritdoc cref="Gpt35Turbo_0301Id"/>
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
public static ChatModels Gpt35Turbo_0301 { get; } = new(
Id: Gpt35Turbo_0301Id,
ContextLength: 4_096,
PricePerInputTokenInUsd: 0.0020 * 0.001,
PricePerOutputTokenInUsd: 0.0020 * 0.001);

/// <inheritdoc cref="Gpt35Turbo_16k_0613Id"/>
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
public static ChatModels Gpt35Turbo_16k_0613 { get; } = new(
Expand All @@ -47,11 +60,10 @@ namespace OpenAI.Constants;
PricePerInputTokenInUsd: 0.0030 * 0.001,
PricePerOutputTokenInUsd: 0.0040 * 0.001);

/// <inheritdoc cref="Gpt35Turbo_0301Id"/>
/// <inheritdoc cref="Gpt35Turbo_16kId"/>
[Obsolete("Marked as Legacy. Will be deprecated on June 13, 2024.")]
public static ChatModels Gpt35Turbo_0301 { get; } = new(
Id: Gpt35Turbo_0301Id,
ContextLength: 4_096,
PricePerInputTokenInUsd: 0.0020 * 0.001,
PricePerOutputTokenInUsd: 0.0020 * 0.001);
public static ChatModels Gpt35Turbo_16k { get; } = Gpt35Turbo_16k_0613 with
{
Id = Gpt35Turbo_16kId,
};
}
3 changes: 1 addition & 2 deletions src/libs/OpenAI.Constants/Chat/ChatModels.3.5.Turbo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ namespace OpenAI.Constants;
PricePerOutputTokenInUsd: 0.0020 * 0.001);

/// <inheritdoc cref="Gpt35TurboId"/>
// ReSharper disable once StaticMemberInitializerReferesToMemberBelow
public static ChatModels Gpt35Turbo { get; } = Gpt35Turbo_0613 with
public static ChatModels Gpt35Turbo { get; } = Gpt35Turbo_0125 with
{
Id = Gpt35TurboId,
FineTuningPricePerTrainingTokenInUsd = 0.0080 * 0.001,
Expand Down

0 comments on commit 9e423f4

Please sign in to comment.