Skip to content

Commit

Permalink
fix: linter issues and example
Browse files Browse the repository at this point in the history
  • Loading branch information
fneiraj committed Feb 5, 2025
1 parent 191e804 commit e0d62b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/src/document_loaders/openai_whisper_audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { OpenAIWhisperAudio } from "@langchain/community/document_loaders/fs/ope
const filePath = "./src/document_loaders/example_data/test.mp3";

const loader = new OpenAIWhisperAudio(filePath, {
language: "es-CL",
transcriptionCreateParams: {
language: "en",
}
});

const docs = await loader.load();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const MODEL_NAME = "whisper-1";
*/
export class OpenAIWhisperAudio extends BufferLoader {
private readonly openAIClient: OpenAIClient;

private readonly transcriptionCreateParams?: Partial<OpenAIClient.Audio.TranscriptionCreateParams>;

constructor(
Expand Down

0 comments on commit e0d62b6

Please sign in to comment.