mishig HF Staff commited on
Commit
5895d44
·
1 Parent(s): f00cd98
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -63,13 +63,7 @@
63
  }
64
 
65
  function updateMessage(value: string, conversationIdx: number, messageIdx: number) {
66
- const lastMsgIdx = conversation.messages.length - 1;
67
- const msg = conversations[conversationIdx].messages[messageIdx];
68
- msg.content = value;
69
- const { role } = msg;
70
- if (messageIdx === lastMsgIdx && role === 'user') {
71
- conversation.messages[messageIdx].content = value;
72
- }
73
  conversation = conversation;
74
  }
75
 
 
63
  }
64
 
65
  function updateMessage(value: string, conversationIdx: number, messageIdx: number) {
66
+ conversation.messages[messageIdx].content = value;
 
 
 
 
 
 
67
  conversation = conversation;
68
  }
69