Skip to content

Commit

Permalink
Moderation Response Model: The model should not be optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Jun 2, 2024
1 parent 6baa54b commit 6ae07c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions OpenAI.Playground/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
// | / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ |
// |-----------------------------------------------------------------------|

await ChatCompletionTestHelper.RunSimpleChatCompletionTest(sdk);
await ChatCompletionTestHelper.RunSimpleCompletionStreamTest(sdk);
//await ChatCompletionTestHelper.RunSimpleChatCompletionTest(sdk);
//await ChatCompletionTestHelper.RunSimpleCompletionStreamTest(sdk);

//Assistants - BETA
//await AssistantTestHelper.BasicsTestHelper.RunTests(sdk);
Expand Down Expand Up @@ -72,7 +72,7 @@
//await ImageTestHelper.RunSimpleCreateImageTest(sdk);
//await ImageTestHelper.RunSimpleCreateImageEditTest(sdk);
//await ImageTestHelper.RunSimpleCreateImageVariationTest(sdk);
//await ModerationTestHelper.CreateModerationTest(sdk);
await ModerationTestHelper.CreateModerationTest(sdk);
//await CompletionTestHelper.RunSimpleCompletionTest(sdk);
//await CompletionTestHelper.RunSimpleCompletionTest2(sdk);
//await CompletionTestHelper.RunSimpleCompletionTest3(sdk);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public record CreateModerationResponse : BaseResponse, IOpenAiModels.IModel, IOp

[JsonPropertyName("id")] public string Id { get; set; }

[JsonPropertyName("model")] public string? Model { get; set; }
[JsonPropertyName("model")] public string Model { get; set; }
}

public record Result
Expand Down

0 comments on commit 6ae07c3

Please sign in to comment.