Skip to content

Commit

Permalink
Update chatData extraction in snapshot view to use snapshot_data.val…
Browse files Browse the repository at this point in the history
…ue (#478)

* Update chatData extraction in snapshot view to use snapshot_data.value

* Remove console log from snapshot view
  • Loading branch information
swuecho authored Jun 19, 2024
1 parent 5c19e02 commit 4600dd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/views/snapshot/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ const chatToMarkdown = () => {
loading?: boolean
isPrompt?: boolean
*/
// @ts-ignore
const chatData = snapshot_data.conversation;
const chatData = snapshot_data.value.conversation;
const markdown = chatData.map((chat: Chat.Message) => {
if (chat.isPrompt)
return `**system** ${format_chat_md(chat)}}`
Expand Down

0 comments on commit 4600dd4

Please sign in to comment.