moderations.mjs 513 B

123456789101112
  1. // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
  2. import { APIResource } from "../resource.mjs";
  3. export class Moderations extends APIResource {
  4. /**
  5. * Classifies if text and/or image inputs are potentially harmful. Learn more in
  6. * the [moderation guide](https://platform.openai.com/docs/guides/moderation).
  7. */
  8. create(body, options) {
  9. return this._client.post('/moderations', { body, ...options });
  10. }
  11. }
  12. //# sourceMappingURL=moderations.mjs.map