Skip to content

Commit 1680525

Browse files
feat(api): api update
1 parent d181bae commit 1680525

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 27
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-3bb06bde0f76baa35ecc698b0c60371c9eadfd7b58c00b77cbc124d5be5dcb8b.yml
3-
openapi_spec_hash: b4339d93d43fb725be0e98bd3bbf4f0b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-2a9024f55f158ede9f9d4811ab4035e470afc920d0f15513da6603d011b2bef7.yml
3+
openapi_spec_hash: cc3275c46438bd043ac96e669e27276f
44
config_hash: 9d144cc6c49d3fd53e5b4472c1e22165

‎src/moderation_api/types/content_submit_params.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"PolicyViolence",
4242
"PolicySelfHarm",
4343
"PolicySpam",
44+
"PolicyLowQualityContent",
4445
"PolicySelfPromotion",
4546
"PolicyPolitical",
4647
"PolicyReligion",
@@ -350,6 +351,20 @@ class PolicySpam(TypedDict, total=False):
350351
threshold: float
351352

352353

354+
class PolicyLowQualityContent(TypedDict, total=False):
355+
id: Required[Literal["low_quality"]]
356+
357+
flag: Required[bool]
358+
359+
min_words: Annotated[int, PropertyInfo(alias="minWords")]
360+
"""Flag content with fewer than this many words as low-effort.
361+
362+
Defaults to 3. Set to disable by omitting.
363+
"""
364+
365+
threshold: float
366+
367+
353368
class PolicySelfPromotion(TypedDict, total=False):
354369
id: Required[Literal["self_promotion"]]
355370

@@ -473,6 +488,7 @@ class PolicyGuideline(TypedDict, total=False):
473488
PolicyViolence,
474489
PolicySelfHarm,
475490
PolicySpam,
491+
PolicyLowQualityContent,
476492
PolicySelfPromotion,
477493
PolicyPolitical,
478494
PolicyReligion,

0 commit comments

Comments
 (0)