diff --git a/src/libs/Directory.Build.props b/src/libs/Directory.Build.props index 034a5caa..c6cdf74b 100755 --- a/src/libs/Directory.Build.props +++ b/src/libs/Directory.Build.props @@ -16,7 +16,7 @@ - 2.0.4 + 2.0.5 true true tryAGI and contributors diff --git a/src/libs/OpenAI.Constants/Chat/ChatModels.4.Turbo.cs b/src/libs/OpenAI.Constants/Chat/ChatModels.4.Turbo.cs index 92b41f68..e3d1fcf0 100644 --- a/src/libs/OpenAI.Constants/Chat/ChatModels.4.Turbo.cs +++ b/src/libs/OpenAI.Constants/Chat/ChatModels.4.Turbo.cs @@ -25,10 +25,23 @@ public readonly partial record struct ChatModels /// Training data: Up to Apr 2023
/// internal const string Gpt4_0125_PreviewId = "gpt-4-0125-preview"; + + /// + /// GPT-4 Turbo with Vision model. + /// Vision requests can now use JSON mode and function calling.
+ /// Max input tokens: 128,000 tokens
+ /// Max output tokens: 4,096 tokens
+ /// Training data: Up to Dec 2023
+ ///
+ internal const string Gpt4Turbo_2024_04_09Id = "gpt-4-turbo-2024-04-09"; /// /// Alias - Currently points to gpt-4-0125-preview. internal const string Gpt4TurboPreviewId = "gpt-4-turbo-preview"; + + /// + /// Alias - Currently points to gpt-4-turbo-2024-04-09. + internal const string Gpt4TurboId = "gpt-4-turbo"; /// public static ChatModels Gpt4_1106_Preview { get; } = new( @@ -44,9 +57,22 @@ public readonly partial record struct ChatModels PricePerInputTokenInUsd: 10.0 * UsdPerMillionTokens, PricePerOutputTokenInUsd: 30.0 * UsdPerMillionTokens); + /// + public static ChatModels Gpt4Turbo_2024_04_09 { get; } = new( + Id: Gpt4Turbo_2024_04_09Id, + ContextLength: 128_000, + PricePerInputTokenInUsd: 10.0 * UsdPerMillionTokens, + PricePerOutputTokenInUsd: 30.0 * UsdPerMillionTokens); + /// public static ChatModels Gpt4TurboPreview { get; } = Gpt4_0125_Preview with { Id = Gpt4TurboPreviewId, }; + + /// + public static ChatModels Gpt4Turbo { get; } = Gpt4Turbo_2024_04_09 with + { + Id = Gpt4TurboId, + }; } \ No newline at end of file