mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-29 14:57:35 +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
|
||||
|
||||
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()
|
||||
else:
|
||||
# Handle the case where self._path is None
|
||||
|
Loading…
Reference in New Issue
Block a user