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-4-0613 & gpt-3.5-turbo-0613 added #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 15 additions & 5 deletions OpenAI_API/Model/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,21 @@ public Model()
/// </summary>
public static Model GPT4_32k_Context => new Model("gpt-4-32k") { OwnedBy = "openai" };

/// <summary>
/// Stable text moderation model that may provide lower accuracy compared to TextModerationLatest.
/// OpenAI states they will provide advanced notice before updating this model.
/// </summary>
public static Model TextModerationStable => new Model("text-moderation-stable") { OwnedBy = "openai" };
/// <summary>
/// Same capabilities as the base gpt-3.5-turbo mode but with function calling.
/// </summary>
public static Model GPT3_5_0613 => new Model("gpt-3.5-turbo-0613") { OwnedBy = "openai" };

/// <summary>
/// Same capabilities as the base gpt-4 mode but with function calling.
/// </summary>
public static Model GPT4_0613 => new Model("gpt-4-0613") { OwnedBy = "openai" };

/// <summary>
/// Stable text moderation model that may provide lower accuracy compared to TextModerationLatest.
/// OpenAI states they will provide advanced notice before updating this model.
/// </summary>
public static Model TextModerationStable => new Model("text-moderation-stable") { OwnedBy = "openai" };

/// <summary>
/// The latest text moderation model. This model will be automatically upgraded over time.
Expand Down
6 changes: 4 additions & 2 deletions OpenAI_Tests/ChatEndpointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ public void SimpleCompletion()
}

[TestCase("gpt-3.5-turbo")]
[TestCase("gpt-4")]
public void ChatBackAndForth(string model)
[TestCase("gpt-3.5-turbo-0613")]
[TestCase("gpt-4")]
[TestCase("gpt-4-0613")]
public void ChatBackAndForth(string model)
{
var api = new OpenAI_API.OpenAIAPI();

Expand Down