Spaces:
Runtime error
Runtime error
wip
Browse files52 unmodified lines535455565758596061626356575859606162646563646552 unmodified lines });
function addMessage() { conversations = conversations.map((conversation) => { conversation.messages = [ ...conversation.messages, { role: conversation.messages.at(-1)?.role === 'user' ? 'assistant' : 'user', content: '' } ]; conversation.messages = [ ...conversation.messages, { role: conversation.messages.at(-1)?.role === 'user' ? 'assistant' : 'user', content: '' } ]; return conversation; }); }
function updateMessage(value: string, conversationIdx: number, messageIdx: number) {src/lib/components/InferencePlayground/InferencePlayground.svelte+7-10