Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpt-4o Support #555

Merged
merged 3 commits into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion OpenAI.SDK/ObjectModels/Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public enum Model
Gpt_4_turbo_preview,
Gpt_4_turbo,
Gpt_4_turbo_2024_04_09,

Gpt_4o,
Gpt_4o_2024_05_13,

WhisperV1,

Dall_e_2,
Expand Down Expand Up @@ -202,6 +204,20 @@ public enum Subject
/// 128,000 tokens Up to Dec 2023
/// </summary>
public static string Gpt_4_turbo_2024_04_09 => "gpt-4-turbo-2024-04-09";

/// <summary>
/// Our most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo.
/// Currently points to gpt-4o-2024-05-13.
/// 128,000 tokens Up to Oct 2023
/// </summary>
public static string Gpt_4o => "gpt-4o";

/// <summary>
/// Our most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo.
/// Currently points to gpt-4o-2024-05-13.
/// 128,000 tokens Up to Oct 2023
/// </summary>
public static string Gpt_4o_2024_05_13 => "gpt-4o-2024-05-13";


public static string Ada => "ada";
Expand Down Expand Up @@ -432,6 +448,8 @@ public static string EnumToString(this Model model)
Model.Gpt_4_turbo_preview => Gpt_4_turbo_preview,
Model.Gpt_4_turbo => Gpt_4_turbo,
Model.Gpt_4_turbo_2024_04_09 => Gpt_4_turbo_2024_04_09,
Model.Gpt_4o => Gpt_4o,
Model.Gpt_4o_2024_05_13 => Gpt_4o_2024_05_13,
Model.Tts_1 => Tts_1,
Model.Tts_1_hd => Tts_1_hd,
Model.Text_moderation_007 => TextModeration007,
Expand Down