Skip to content

Commit

Permalink
Fix youtube tool call (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroliu authored Jan 13, 2025
1 parent e651286 commit 479512d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/YoutubeTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { tool } from "@langchain/core/tools";
import { z } from "zod";

const simpleYoutubeTranscriptionTool = tool(
async ({ url, brevilabsClient }: { url: string; brevilabsClient: BrevilabsClient }) => {
async ({ url }: { url: string }) => {
try {
const response = await brevilabsClient.youtube4llm(url);
const response = await BrevilabsClient.getInstance().youtube4llm(url);

// Check if transcript is empty
if (!response.response.transcript) {
Expand Down

0 comments on commit 479512d

Please sign in to comment.