Skip to content

Commit

Permalink
fix(model): Stream object can't use await (#1719)
Browse files Browse the repository at this point in the history
Co-authored-by: kain <[email protected]>
  • Loading branch information
Kain-90 and kain authored Jul 16, 2024
1 parent e4abd56 commit 45c9938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbgpt/rag/knowledge/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _load(self) -> List[Document]:
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
Expand Down

0 comments on commit 45c9938

Please sign in to comment.