(deploymentName, fileContent, formatOrOptions, inputOptions)
| 78578 | })); |
| 78579 | } |
| 78580 | setModel(model, options) { |
| 78581 | if (!this._isAzure) { |
| 78582 | options.model = model; |
| 78583 | } |
| 78584 | } |
| 78585 | // implementation |
| 78586 | async getAudioTranslation(deploymentName, fileContent, formatOrOptions, inputOptions) { |
| 78587 | const options = inputOptions !== null && inputOptions !== void 0 ? inputOptions : typeof formatOrOptions === "string" ? {} : formatOrOptions !== null && formatOrOptions !== void 0 ? formatOrOptions : {}; |
| 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); |
nothing calls this directly
no test coverage detected