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