Skip to content

Commit

Permalink
Merge pull request OkGoDoIt#94 from HongxuMeng/bugfix
Browse files Browse the repository at this point in the history
Fix a bug of CallModerationAsync with parameters in wrong order
  • Loading branch information
OkGoDoIt authored Apr 2, 2023
2 parents 36f51e4 + b590d84 commit 2c817ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenAI_API/Moderation/ModerationEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal ModerationEndpoint(OpenAIAPI api) : base(api) { }
/// <returns>Asynchronously returns the classification result</returns>
public async Task<ModerationResult> CallModerationAsync(string input)
{
ModerationRequest req = new ModerationRequest(DefaultModerationRequestArgs.Model, input);
ModerationRequest req = new ModerationRequest(input, DefaultModerationRequestArgs.Model);
return await CallModerationAsync(req);
}

Expand Down

0 comments on commit 2c817ca

Please sign in to comment.