From ea4fa238abdcddbf14aa7d42b7689cdd00a2d290 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:44:11 +0000 Subject: [PATCH] fix(breaking!): correct broken type names in moderation categories (#811) Migration: - `self_minus_harm_intent` -> `self_harm_intent` - `self_minus_harm_instructions` -> `self_harm_instructions` - `self_minus_harm` -> `self_harm` --- src/openai/types/moderation.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openai/types/moderation.py b/src/openai/types/moderation.py index bf586fc24a..3602a46985 100644 --- a/src/openai/types/moderation.py +++ b/src/openai/types/moderation.py @@ -35,20 +35,20 @@ class Categories(BaseModel): orientation, disability status, or caste. """ - self_minus_harm: bool = FieldInfo(alias="self-harm") + self_harm: bool = FieldInfo(alias="self-harm") """ Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. """ - self_minus_harm_instructions: bool = FieldInfo(alias="self-harm/instructions") + self_harm_instructions: bool = FieldInfo(alias="self-harm/instructions") """ Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts. """ - self_minus_harm_intent: bool = FieldInfo(alias="self-harm/intent") + self_harm_intent: bool = FieldInfo(alias="self-harm/intent") """ Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders. @@ -84,13 +84,13 @@ class CategoryScores(BaseModel): hate_threatening: float = FieldInfo(alias="hate/threatening") """The score for the category 'hate/threatening'.""" - self_minus_harm: float = FieldInfo(alias="self-harm") + self_harm: float = FieldInfo(alias="self-harm") """The score for the category 'self-harm'.""" - self_minus_harm_instructions: float = FieldInfo(alias="self-harm/instructions") + self_harm_instructions: float = FieldInfo(alias="self-harm/instructions") """The score for the category 'self-harm/instructions'.""" - self_minus_harm_intent: float = FieldInfo(alias="self-harm/intent") + self_harm_intent: float = FieldInfo(alias="self-harm/intent") """The score for the category 'self-harm/intent'.""" sexual: float