-
-
Notifications
You must be signed in to change notification settings - Fork 542
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
I'm trying to create a OpenAI with chat moderation features, and I found out that there is a small typo in Categories.Sexualminors, but CategoryScores with same json 'sexualminors' its using CategoryScores.SexualMinors
Your code piece
public static IEnumerable<float> GetScores(this CategoryScores scores)
{
yield return scores.Hate;
yield return scores.HateThreatening;
yield return scores.Selfharm;
yield return scores.Sexual;
yield return scores.SexualMinors;
yield return scores.Violence;
yield return scores.Violencegraphic;
}
public static IEnumerable<bool> GetCategories(this Categories category)
{
yield return category.Hate;
yield return category.HateThreatening;
yield return category.Selfharm;
yield return category.Sexual;
yield return category.Sexualminors;
yield return category.Violence;
yield return category.Violencegraphic;
}
Result
Expected behavior
It should same either Sexualminors or SexualMinors one of it but I prefer SexualMinors
Desktop (please complete the following information):
- OS: Windows 10 22H2
- Language: C#
- Version: v6.8.0
Additional context
kayhantolga
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working