mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-29 23:01:38 +00:00
fix(model): Stream object can't use await (#1719)
Co-authored-by: kain <kai4tech@gmail.com>
This commit is contained in:
parent
e4abd56eeb
commit
45c9938f6e
@ -40,7 +40,7 @@ class URLKnowledge(Knowledge):
|
|||||||
from langchain.document_loaders import WebBaseLoader # mypy: ignore
|
from langchain.document_loaders import WebBaseLoader # mypy: ignore
|
||||||
|
|
||||||
if self._path is not None:
|
if self._path is not None:
|
||||||
web_reader = WebBaseLoader(web_path=self._path)
|
web_reader = WebBaseLoader(web_path=self._path, encoding="utf8")
|
||||||
documents = web_reader.load()
|
documents = web_reader.load()
|
||||||
else:
|
else:
|
||||||
# Handle the case where self._path is None
|
# Handle the case where self._path is None
|
||||||
|
Loading…
Reference in New Issue
Block a user