openai
Version:
The official TypeScript library for the OpenAI API
24 lines • 1.38 kB
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContentProvenanceChecks = void 0;
const resource_1 = require("../core/resource.js");
const uploads_1 = require("../internal/uploads.js");
class ContentProvenanceChecks extends resource_1.APIResource {
/**
* Check whether an image or audio file contains known OpenAI provenance signals.
* [Learn more about content provenance](/api/docs/guides/content-provenance).
*
* If `not_detected`, it means the tool did not find supported signals in the
* uploaded file. The content could still have been generated by OpenAI if the
* metadata was stripped or has evidence of tampering, the watermark was degraded,
* it comes from a legacy generation model, or it was created before provenance
* signals were available. Content could also still be AI-generated by another
* company's model, which the tool currently does not detect.
*/
create(body, options) {
return this._client.post('/content_provenance_checks', (0, uploads_1.multipartFormRequestOptions)({ body, ...options, __security: { bearerAuth: true } }, this._client));
}
}
exports.ContentProvenanceChecks = ContentProvenanceChecks;
//# sourceMappingURL=content-provenance-checks.js.map