wip
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -68,12 +68,9 @@
|
|
68 |
msg.content = value;
|
69 |
const { role } = msg;
|
70 |
if (messageIdx === lastMsgIdx && role === 'user') {
|
71 |
-
|
72 |
-
conversation.messages[messageIdx].content = value;
|
73 |
-
return conversation;
|
74 |
-
});
|
75 |
}
|
76 |
-
|
77 |
}
|
78 |
|
79 |
function deleteAndGetItem<T>(array: T[], index: number) {
|
|
|
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 |
|
76 |
function deleteAndGetItem<T>(array: T[], index: number) {
|