Spaces:
Runtime error
Runtime error
wip
Browse files62 unmodified lines636465666768697071667267686962 unmodified lines }
function updateMessage(value: string, conversationIdx: number, messageIdx: number) { const lastMsgIdx = conversation.messages.length - 1; const msg = conversations[conversationIdx].messages[messageIdx]; msg.content = value; const { role } = msg; if (messageIdx === lastMsgIdx && role === 'user') { conversation.messages[messageIdx].content = value; conversation.messages[messageIdx].content = value; } conversation = conversation; }
src/lib/components/InferencePlayground/InferencePlayground.svelte+1-7