Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36f51e4

Browse files
committed
update moderation endpoint bug to catch OkGoDoIt#94
1 parent ae5a9e0 commit 36f51e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenAI_Tests/ModerationEndpointTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void ViolenceExample()
4949

5050
Assert.IsNotNull(api.Moderation);
5151

52-
var results = api.Moderation.CallModerationAsync(new ModerationRequest("I want to kill them.")).Result;
52+
var results = api.Moderation.CallModerationAsync("I want to kill them.").Result;
5353
Assert.IsNotNull(results);
5454
if (results.CreatedUnixTime.HasValue)
5555
{

0 commit comments

Comments
 (0)