MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getAudioTranscription

Method getAudioTranscription

out/cli.cjs:78590–78598  ·  view source on GitHub ↗
(deploymentName, fileContent, formatOrOptions, inputOptions)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

getAudioTranscriptionFunction · 0.85
setModelMethod · 0.80

Tested by

no test coverage detected