File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_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
44config_hash : 9d144cc6c49d3fd53e5b4472c1e22165
Original file line number Diff line number Diff line change 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+
353368class 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 ,
You can’t perform that action at this time.
0 commit comments