-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// ReSharper disable once CheckNamespace | ||
namespace OpenAI.Constants; | ||
|
||
// ReSharper disable InconsistentNaming | ||
|
||
public readonly partial record struct ChatModels | ||
{ | ||
/// <summary> | ||
/// Our most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo. <br/> | ||
/// According https://platform.openai.com/docs/models/gpt-4o <br/> | ||
/// Max input tokens: 128,000 tokens <br/> | ||
/// Max output tokens: 4,096 tokens <br/> | ||
/// Training data: Up to Oct 2023 <br/> | ||
/// </summary> | ||
internal const string Gpt4o_2024_05_13Id = "gpt-4o-2024-05-13"; | ||
|
||
/// <inheritdoc cref="Gpt4o_2024_05_13Id"/> | ||
/// <remarks>Alias - Currently points to gpt-4-1106-vision-preview.</remarks> | ||
internal const string Gpt4oId = "gpt-4o"; | ||
|
||
/// <inheritdoc cref="Gpt4o_2024_05_13Id"/> | ||
public static ChatModels Gpt4o_2024_05_13 { get; } = new( | ||
Gpt4o_2024_05_13Id, | ||
ContextLength: 128_000, | ||
PricePerInputTokenInUsd: 5.0 * UsdPerMillionTokens, | ||
PricePerOutputTokenInUsd: 15.0 * UsdPerMillionTokens); | ||
|
||
/// <inheritdoc cref="Gpt4o_2024_05_13Id"/> | ||
public static ChatModels Gpt4o { get; } = Gpt4o_2024_05_13 with | ||
{ | ||
Id = Gpt4oId, | ||
}; | ||
} |