Skip to content

Commit

Permalink
feat: Added Omni GPT-4 models.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed May 14, 2024
1 parent 17a4373 commit 4f2b2d5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
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.8</Version>
<Version>2.0.9</Version>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Authors>tryAGI and contributors</Authors>
Expand Down
33 changes: 33 additions & 0 deletions src/libs/OpenAI.Constants/Chat/ChatModels.4.Omni.cs
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,
};
}

0 comments on commit 4f2b2d5

Please sign in to comment.