moderations.js 657 B

12345678910111213141516
  1. "use strict";
  2. // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.Moderations = void 0;
  5. const resource_1 = require("../resource.js");
  6. class Moderations extends resource_1.APIResource {
  7. /**
  8. * Classifies if text and/or image inputs are potentially harmful. Learn more in
  9. * the [moderation guide](https://platform.openai.com/docs/guides/moderation).
  10. */
  11. create(body, options) {
  12. return this._client.post('/moderations', { body, ...options });
  13. }
  14. }
  15. exports.Moderations = Moderations;
  16. //# sourceMappingURL=moderations.js.map