transcriptions.mjs 543 B

1234567891011121314
  1. // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
  2. import { APIResource } from "../../resource.mjs";
  3. import * as Core from "../../core.mjs";
  4. export class Transcriptions extends APIResource {
  5. create(body, options) {
  6. return this._client.post('/audio/transcriptions', Core.multipartFormRequestOptions({
  7. body,
  8. ...options,
  9. stream: body.stream ?? false,
  10. __metadata: { model: body.model },
  11. }));
  12. }
  13. }
  14. //# sourceMappingURL=transcriptions.mjs.map