Skip to content

Typo in OpenAI.GPT3.ObjectModels.ResponseModels.Categories #176

@HowToDoThis

Description

@HowToDoThis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions