Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
68b3cce0
Commit
68b3cce0
authored
Jun 24, 2024
by
Timothy J. Baek
Browse files
fix: query memory
parent
d361404a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+2
-2
No files found.
src/lib/components/chat/Chat.svelte
View file @
68b3cce0
...
@@ -529,8 +529,8 @@
...
@@ -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];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment