[Doc update] update mistral example (#1012)

This commit is contained in:
Deven Patel
2023-12-15 06:12:53 +05:30
committed by GitHub
parent 151746beec
commit 0efbc80ac9
3 changed files with 12 additions and 7 deletions

View File

@@ -196,7 +196,8 @@ def detect_datatype(source: Any) -> DataType:
formatted_source = format_source(str(source), 30)
if url:
from langchain.document_loaders.youtube import ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
from langchain.document_loaders.youtube import \
ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
if url.netloc in YOUTUBE_ALLOWED_NETLOCS:
logging.debug(f"Source of `{formatted_source}` detected as `youtube_video`.")