Skip to content

Commit 1a019e2

Browse files
committed
correct the role
1 parent cbc32e3 commit 1a019e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pages/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ const sendPrompt = async () => {
6868
:key="i"
6969
class="flex flex-col p-4"
7070
>
71-
<div v-if="message.role === 'AI'" class="pr-8 mr-auto">
71+
<div
72+
v-if="message.role === 'model'"
73+
class="pr-8 mr-auto"
74+
>
7275
<div
7376
class="p-2 mt-1 text-sm text-gray-700 bg-gray-200 rounded-lg text-smp-2"
7477
>

0 commit comments

Comments
 (0)