Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAIWhisperAudio language, prompt, reponse_format, temprature, timestamp_granularities support not added #5306

Open
5 tasks done
sunnyunde-xooa opened this issue May 7, 2024 · 0 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@sunnyunde-xooa
Copy link

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

Current OpenAIWhisperAudio only supports raw and

async parse(raw, metadata) {
        const fileName = metadata.source === "blob" ? metadata.blobType : metadata.source;
        const transcriptionResponse = await this.openAIClient.audio.transcriptions.create({
            file: await (0, openai_1.toFile)(raw, fileName),
            model: MODEL_NAME,
        });
        const document = new documents_1.Document({
            pageContent: transcriptionResponse.text,
            metadata,
        });
        return [document];
    }

Here the create function supports anguage, prompt, reponse_format, temprature, timestamp_granularities but there is no way to pass it.

Error Message and Stack Trace (if applicable)

No response

Description

OpenAI Whisper missing supports language, prompt, response_format, temprature, timestamp_granularities but there is no way to pass it.

System Info

yarn info v1.22.19

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant