mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
commit
1cd7d83f50
@ -50,8 +50,11 @@ async def get_knowledge_items(
|
|||||||
knowledge_bases = []
|
knowledge_bases = []
|
||||||
|
|
||||||
for knowledge in Knowledges.get_knowledge_items():
|
for knowledge in Knowledges.get_knowledge_items():
|
||||||
|
|
||||||
|
files = []
|
||||||
|
if knowledge.data:
|
||||||
files = Files.get_file_metadatas_by_ids(
|
files = Files.get_file_metadatas_by_ids(
|
||||||
knowledge.data.get("file_ids", []) if knowledge.data else []
|
knowledge.data.get("file_ids", [])
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if all files exist
|
# Check if all files exist
|
||||||
|
Loading…
Reference in New Issue
Block a user