(deploymentName, fileContent, formatOrOptions, inputOptions)
| 78588 | const response_format = typeof formatOrOptions === "string" ? formatOrOptions : void 0; |
| 78589 | this.setModel(deploymentName, options); |
| 78590 | if (response_format === void 0) { |
| 78591 | return getAudioTranslation(this._client, deploymentName, fileContent, options); |
| 78592 | } |
| 78593 | return getAudioTranslation(this._client, deploymentName, fileContent, response_format, options); |
| 78594 | } |
| 78595 | // implementation |
| 78596 | async getAudioTranscription(deploymentName, fileContent, formatOrOptions, inputOptions) { |
| 78597 | const options = inputOptions !== null && inputOptions !== void 0 ? inputOptions : typeof formatOrOptions === "string" ? {} : formatOrOptions !== null && formatOrOptions !== void 0 ? formatOrOptions : {}; |
| 78598 | const response_format = typeof formatOrOptions === "string" ? formatOrOptions : void 0; |
| 78599 | this.setModel(deploymentName, options); |
| 78600 | if (response_format === void 0) { |
| 78601 | return getAudioTranscription(this._client, deploymentName, fileContent, options); |
nothing calls this directly
no test coverage detected