@@ -579,8 +579,8 @@ onMounted(() => {
579579 should-auto-scroll
580580 class="flex-1"
581581 >
582- <template #content="{ message }">
583- <template v-for="(part, index) in message. parts" :key="`${message. id}-${part.type}-${index}`">
582+ <template #content="{ id, role, parts }">
583+ <template v-for="(part, index) in parts" :key="`${id}-${part.type}-${index}`">
584584 <UChatReasoning
585585 v-if="isReasoningUIPart(part)"
586586 :text="part.text"
@@ -594,11 +594,11 @@ onMounted(() => {
594594
595595 <template v-else-if="isTextUIPart(part)">
596596 <ChatComark
597- v-if="message. role === 'assistant'"
597+ v-if="role === 'assistant'"
598598 :markdown="part.text"
599599 :streaming="isPartStreaming(part)"
600600 />
601- <p v-else-if="message. role === 'user'" class="whitespace-pre-wrap">
601+ <p v-else-if="role === 'user'" class="whitespace-pre-wrap">
602602 {{ part.text }}
603603 </p>
604604 </template>
@@ -860,8 +860,8 @@ onMounted(() => {
860860 should-auto-scroll
861861 class="flex-1"
862862 >
863- <template #content="{ message }">
864- <template v-for="(part, index) in message. parts" :key="`${message. id}-${part.type}-${index}`">
863+ <template #content="{ id, role, parts }">
864+ <template v-for="(part, index) in parts" :key="`${id}-${part.type}-${index}`">
865865 <UChatReasoning
866866 v-if="isReasoningUIPart(part)"
867867 :text="part.text"
@@ -875,11 +875,11 @@ onMounted(() => {
875875
876876 <template v-else-if="isTextUIPart(part)">
877877 <ChatComark
878- v-if="message. role === 'assistant'"
878+ v-if="role === 'assistant'"
879879 :markdown="part.text"
880880 :streaming="isPartStreaming(part)"
881881 />
882- <p v-else-if="message. role === 'user'" class="whitespace-pre-wrap">
882+ <p v-else-if="role === 'user'" class="whitespace-pre-wrap">
883883 {{ part.text }}
884884 </p>
885885 </template>
@@ -1045,8 +1045,8 @@ onMounted(() => {
10451045 should-auto-scroll
10461046 class="flex-1"
10471047 >
1048- <template #content="{ message }">
1049- <template v-for="(part, index) in message. parts" :key="`${message. id}-${part.type}-${index}`">
1048+ <template #content="{ id, role, parts }">
1049+ <template v-for="(part, index) in parts" :key="`${id}-${part.type}-${index}`">
10501050 <UChatReasoning
10511051 v-if="isReasoningUIPart(part)"
10521052 :text="part.text"
@@ -1060,11 +1060,11 @@ onMounted(() => {
10601060
10611061 <template v-else-if="isTextUIPart(part)">
10621062 <ChatComark
1063- v-if="message. role === 'assistant'"
1063+ v-if="role === 'assistant'"
10641064 :markdown="part.text"
10651065 :streaming="isPartStreaming(part)"
10661066 />
1067- <p v-else-if="message. role === 'user'" class="whitespace-pre-wrap">
1067+ <p v-else-if="role === 'user'" class="whitespace-pre-wrap">
10681068 {{ part.text }}
10691069 </p>
10701070 </template>
0 commit comments