node-ejs-renderer/node_modules/openai/resources/moderations.mjs

13 lines
460 B
JavaScript
Raw Normal View History

2024-06-09 13:55:01 -04:00
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../resource.mjs";
export class Moderations extends APIResource {
/**
* Classifies if text is potentially harmful.
*/
create(body, options) {
return this._client.post('/moderations', { body, ...options });
}
}
(function (Moderations) {
})(Moderations || (Moderations = {}));
//# sourceMappingURL=moderations.mjs.map