Skip to content

Commit

Permalink
fix(chat): Regenerate only last message
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Jul 31, 2024
1 parent d05f2cc commit ca7353a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<div class="absolute dyn-container chat-toolbar">
<!-- Allow regenerating the last message from the AI if fully completed -->
<q-btn
v-if="!isLoadingRef && message.author === 'ai'"
v-if="!isLoadingRef && message.author === 'ai' && message_index === chatRef.messages.length - 1"
dense
flat
icon="refresh"
Expand Down

0 comments on commit ca7353a

Please sign in to comment.