Skip to content

Commit

Permalink
Update chatData extraction in snapshot view to use snapshot_data.value
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Jun 19, 2024
1 parent 5c19e02 commit 40498f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/views/snapshot/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const chatToMarkdown = () => {
isPrompt?: boolean
*/
// @ts-ignore
const chatData = snapshot_data.conversation;
console.log(snapshot_data.value);
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 40498f0

Please sign in to comment.