UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

23 lines • 1.4 kB
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details. import { APIResource } from "../core/resource.mjs"; import { multipartFormRequestOptions } from "../internal/uploads.mjs"; function resolveResourceRequestOptions(options, buildOptions) { return Promise.resolve(options).then(buildOptions); } export class ContentProvenanceChecks extends APIResource { /** * Check whether an image or audio file contains known OpenAI provenance signals. * [Learn more about content provenance](https://developers.openai.com/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', resolveResourceRequestOptions(options, (options) => multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client))); } } //# sourceMappingURL=content-provenance-checks.mjs.map