mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
refac
This commit is contained in:
parent
609a6a3721
commit
4f2e426fc7
1 changed files with 1 additions and 3 deletions
|
|
@ -499,9 +499,7 @@ def get_sources_from_items(
|
||||||
"documents": [
|
"documents": [
|
||||||
[item.get("file", {}).get("data", {}).get("content")]
|
[item.get("file", {}).get("data", {}).get("content")]
|
||||||
],
|
],
|
||||||
"metadatas": [
|
"metadatas": [[item.get("file", {}).get("meta", {})]],
|
||||||
[item.get("file", {}).get("data", {}).get("meta", {})]
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
# Fallback to item content
|
# Fallback to item content
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue