mishig HF Staff commited on
Commit
8cb08ea
·
1 Parent(s): 62d3ef2

during generation, messages should not be edited

Browse files
src/lib/components/Playground/Playground.svelte CHANGED
@@ -74,14 +74,6 @@
74
  }
75
 
76
  function deleteMessage(i: number) {
77
- if (i === currentConversation.messages.length - 1 && streamingMessage) {
78
- if (abortController) {
79
- abortController.abort();
80
- abortController = null;
81
- }
82
- loading = false;
83
- streamingMessage = null;
84
- }
85
  currentConversation.messages = currentConversation.messages.filter((_, j) => j !== i);
86
  conversations = conversations;
87
  }
@@ -228,6 +220,7 @@
228
  {#each conversations as conversation, index}
229
  <div
230
  class="flex max-h-[calc(100dvh-5.8rem)] flex-col overflow-y-auto overflow-x-hidden @container"
 
231
  bind:this={messageContainer}
232
  >
233
  {#if conversations.length > 1}
 
74
  }
75
 
76
  function deleteMessage(i: number) {
 
 
 
 
 
 
 
 
77
  currentConversation.messages = currentConversation.messages.filter((_, j) => j !== i);
78
  conversations = conversations;
79
  }
 
220
  {#each conversations as conversation, index}
221
  <div
222
  class="flex max-h-[calc(100dvh-5.8rem)] flex-col overflow-y-auto overflow-x-hidden @container"
223
+ class:pointer-events-none={loading}
224
  bind:this={messageContainer}
225
  >
226
  {#if conversations.length > 1}