From d68aa5c708a74f12233aef03f911b02e6b47af10 Mon Sep 17 00:00:00 2001
From: Timothy Jaeryang Baek <tim@openwebui.com>
Date: Wed, 20 Nov 2024 06:53:11 -0800
Subject: [PATCH] chore: requirements

---
 backend/open_webui/apps/retrieval/main.py | 5 ++---
 backend/requirements.txt                  | 4 ++--
 pyproject.toml                            | 4 ++--
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/backend/open_webui/apps/retrieval/main.py b/backend/open_webui/apps/retrieval/main.py
index 3b76d612d..f935e91e3 100644
--- a/backend/open_webui/apps/retrieval/main.py
+++ b/backend/open_webui/apps/retrieval/main.py
@@ -1060,10 +1060,9 @@ def process_youtube_video(form_data: ProcessUrlForm, user=Depends(get_verified_u
             collection_name = calculate_sha256_string(form_data.url)[:63]
 
         loader = YoutubeLoader.from_youtube_url(
-            form_data.url,
-            language=app.state.config.YOUTUBE_LOADER_LANGUAGE,
-            translation=app.state.YOUTUBE_LOADER_TRANSLATION,
+            form_data.url, language=app.state.config.YOUTUBE_LOADER_LANGUAGE
         )
+
         docs = loader.load()
         content = " ".join([doc.page_content for doc in docs])
         log.debug(f"text_content: {content}")
diff --git a/backend/requirements.txt b/backend/requirements.txt
index 89f871cea..368613b22 100644
--- a/backend/requirements.txt
+++ b/backend/requirements.txt
@@ -37,8 +37,8 @@ anthropic
 google-generativeai==0.7.2
 tiktoken
 
-langchain==0.3.5
-langchain-community==0.3.3
+langchain==0.3.7
+langchain-community==0.3.7
 langchain-chroma==0.1.4
 
 fake-useragent==1.5.1
diff --git a/pyproject.toml b/pyproject.toml
index 2886f1b17..e425a70f4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -44,8 +44,8 @@ dependencies = [
     "google-generativeai==0.7.2",
     "tiktoken",
 
-    "langchain==0.3.5",
-    "langchain-community==0.3.3",
+    "langchain==0.3.7",
+    "langchain-community==0.3.7",
     "langchain-chroma==0.1.4",
 
     "fake-useragent==1.5.1",