Skip to content

Commit

Permalink
Update MemorySelect.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Dec 16, 2023
1 parent faa9c46 commit 1603997
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/MemorySelect.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script setup lang="ts">
import { capitalize } from 'lodash'
defineProps<{
result: any
result: Record<string, any>
}>()
const selectedCollection = ref('episodic')
Expand Down Expand Up @@ -40,7 +38,7 @@ const selectedCollection = ref('episodic')
{{ item.metadata.docstring ? `${item.metadata.docstring}` : item.page_content }}
</p>
<div class="flex justify-between gap-2 text-xs font-bold text-neutral/70">
<p>{{ capitalize(item.metadata.source) }} {{ item.metadata.name ? `(${item.metadata.name})` : '' }}</p>
<p class="truncate">{{ item.metadata.source }} {{ item.metadata.name ? `(${item.metadata.name})` : '' }}</p>
<p>{{ new Date(item.metadata.when * 1000).toLocaleString() }}</p>
</div>
</div>
Expand Down

0 comments on commit 1603997

Please sign in to comment.