mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 09:09:53 +00:00
fix: query memory
This commit is contained in:
parent
d361404a60
commit
68b3cce0fd
@ -529,8 +529,8 @@
|
||||
});
|
||||
if (res) {
|
||||
if (res.documents[0].length > 0) {
|
||||
userContext = res.documents.reduce((acc, doc, index) => {
|
||||
const createdAtTimestamp = res.metadatas[index][0].created_at;
|
||||
userContext = res.documents[0].reduce((acc, doc, index) => {
|
||||
const createdAtTimestamp = res.metadatas[0][index].created_at;
|
||||
const createdAtDate = new Date(createdAtTimestamp * 1000)
|
||||
.toISOString()
|
||||
.split('T')[0];
|
||||
|
Loading…
Reference in New Issue
Block a user