mishig HF staff commited on
Commit
e61727f
·
1 Parent(s): 651e1d0
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -84,10 +84,8 @@
84
  }
85
 
86
  function deleteMessage(idx: number) {
87
- conversations = conversations.map((conversation) => {
88
- deleteAndGetItem<ChatCompletionInputMessage>(conversation.messages, idx);
89
- return conversation;
90
- });
91
  }
92
 
93
  function reset() {
 
84
  }
85
 
86
  function deleteMessage(idx: number) {
87
+ deleteAndGetItem<ChatCompletionInputMessage>(conversation.messages, idx);
88
+ conversation = conversation;
 
 
89
  }
90
 
91
  function reset() {