This website works better with JavaScript.
首頁
探索
說明
註冊
登入
OpenSource
/
dify
關註
4
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
152
Wiki
Activity
瀏覽代碼
fix: web reader tool retrieve content empty (
#957
)
tags/0.3.15
takatost
2 年之前
父節點
5623839c71
當前提交
5cba2e7087
No account linked to committer's email address
共有
1 個文件被更改
,包括
3 次插入
和
0 次删除
分割檢視
顯示文件統計
3
0
api/core/tool/web_reader_tool.py
+ 3
- 0
api/core/tool/web_reader_tool.py
查看文件
@@ -88,6 +88,9 @@ class WebReaderTool(BaseTool):
texts = character_splitter.split_text(page_contents)
docs = [Document(page_content=t) for t in texts]
if len(docs) == 0:
return "No content found."
docs = docs[1:]
# only use first 5 docs
Write
Preview
Loading…
取消
儲存