diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 41dedfa..a9dd0a5 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1765,7 +1765,8 @@ const tokGen = data.tokens_generated || 0; termLog(` ${data.model || model} (${tokGen} tok)`); if (!silent) { - termLog(` ${esc(response).replace(/\n/g,'\n ')}`, '#c9d1d9'); + const highlighted = highlightCode(response).replace(/\n/g, '\n '); + termLog(`
${highlighted}
`); } return response; } catch (e) { @@ -2116,7 +2117,7 @@ Prompt: "${esc(stripSystemPrompt(data.prompt))}"
- ${data.response ? esc(data.response) : 'tyhjä vastaus'} + ${data.response ? highlightCode(data.response) : 'tyhjä vastaus'}
${tokGen} tokenia generoitu | malli ladattu: ${typeof loadMs === 'number' ? loadMs.toFixed(0) : loadMs}ms