wip
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -63,13 +63,7 @@
|
|
63 |
}
|
64 |
|
65 |
function updateMessage(value: string, conversationIdx: number, messageIdx: number) {
|
66 |
-
|
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 |
|