UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

20 lines 1.2 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../core/resource.mjs"; import { multipartFormRequestOptions } from "../internal/uploads.mjs"; export class ContentProvenanceChecks extends 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', multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client)); } } //# sourceMappingURL=content-provenance-checks.mjs.map