agsamantha/node_modules/openai/resources/moderations.mjs

14 lines
578 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05: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 and/or image inputs are potentially harmful. Learn more in
* the [moderation guide](https://platform.openai.com/docs/guides/moderation).
*/
create(body, options) {
return this._client.post('/moderations', { body, ...options });
}
}
(function (Moderations) {
})(Moderations || (Moderations = {}));
//# sourceMappingURL=moderations.mjs.map