diff --git a/index.html b/index.html
index 9673cc6..ca80b41 100644
--- a/index.html
+++ b/index.html
@@ -12207,6 +12207,34 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
r.isWinner = r.isWinner === true;
}
}
+ if (msg.liquidIterations != null) msg.liquidIterations = parseInt(msg.liquidIterations) || 0;
+ if (msg.liquidImprovement != null) msg.liquidImprovement = Number(msg.liquidImprovement) || 0;
+ if (msg.magic && typeof msg.magic === 'object') {
+ const m = msg.magic;
+ if (m.mode != null) m.mode = String(m.mode).slice(0, 30);
+ if (m.score != null) m.score = Number(m.score) || 0;
+ if (m.duration != null) m.duration = String(m.duration).slice(0, 20);
+ if (m.variants_succeeded != null) m.variants_succeeded = parseInt(m.variants_succeeded) || 0;
+ if (m.variants_total != null) m.variants_total = parseInt(m.variants_total) || 0;
+ if (m.variants_refused != null) m.variants_refused = parseInt(m.variants_refused) || 0;
+ if (m.topScore != null) m.topScore = String(m.topScore).slice(0, 20);
+ if (m.combos_attempted != null) m.combos_attempted = parseInt(m.combos_attempted) || 0;
+ if (m.combos_succeeded != null) m.combos_succeeded = parseInt(m.combos_succeeded) || 0;
+ if (m.combos_failed != null) m.combos_failed = parseInt(m.combos_failed) || 0;
+ if (m.autoTune && typeof m.autoTune === 'object') {
+ const at = m.autoTune;
+ at.confidence = Number(at.confidence) || 0;
+ at.conversationLength = Number(at.conversationLength) || 0;
+ at.godmodeBoost = at.godmodeBoost === true;
+ if (at.strategy != null) at.strategy = String(at.strategy).slice(0, 20);
+ if (at.context != null) at.context = String(at.context).slice(0, 30);
+ if (at.params && typeof at.params === 'object') {
+ for (const k of Object.keys(at.params)) {
+ at.params[k] = Number(at.params[k]) || 0;
+ }
+ }
+ }
+ }
}
}
// Validate strategy logs
@@ -12952,16 +12980,18 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
// Build reasoning string
let reasoningParts = [];
+ const atConf = Number(at.confidence) || 0;
+ const atConvLen = Number(at.conversationLength) || 0;
if (at.strategy === 'adaptive') {
- reasoningParts.push(`Detected ${contextLabels[at.context] || at.context} context`);
- if (at.confidence < 0.6) {
- reasoningParts.push(`Low confidence (${Math.round(at.confidence * 100)}%) - blended with balanced`);
+ reasoningParts.push(`Detected ${contextLabels[at.context] || escapeHtml(String(at.context || 'unknown'))} context`);
+ if (atConf < 0.6) {
+ reasoningParts.push(`Low confidence (${Math.round(atConf * 100)}%) - blended with balanced`);
}
} else {
- reasoningParts.push(`Fixed ${strategyLabels[at.strategy] || at.strategy} profile`);
+ reasoningParts.push(`Fixed ${strategyLabels[at.strategy] || escapeHtml(String(at.strategy || 'unknown'))} profile`);
}
- if (at.conversationLength > 10) {
- reasoningParts.push(`Long convo boost (+${Math.min((at.conversationLength - 10) * 0.01, 0.15).toFixed(2)} rep)`);
+ if (atConvLen > 10) {
+ reasoningParts.push(`Long convo boost (+${Math.min((atConvLen - 10) * 0.01, 0.15).toFixed(2)} rep)`);
}
if (at.godmodeBoost) {
reasoningParts.push('GODMODE boost (+0.1 temp, +0.15 pres, +0.1 freq)');
@@ -12975,18 +13005,18 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
🧠AUTOTUNE
${escapeHtml(strategyLabels[at.strategy] || String(at.strategy))}
- ${escapeHtml(contextLabels[at.context] || String(at.context))} (${Math.round((at.confidence || 0) * 100)}%)
+ ${escapeHtml(contextLabels[at.context] || String(at.context || 'unknown'))} (${Math.round(atConf * 100)}%)
${escapeHtml(reasoning)}
-
TEMP
${at.params?.temperature?.toFixed(2) || '-'}
-
TOP-P
${at.params?.top_p?.toFixed(2) || '-'}
-
TOP-K
${at.params?.top_k || '-'}
-
FREQ
${at.params?.frequency_penalty?.toFixed(2) || '-'}
-
PRES
${at.params?.presence_penalty?.toFixed(2) || '-'}
-
REP
${at.params?.repetition_penalty?.toFixed(2) || '-'}
+
TEMP
${Number.isFinite(at.params?.temperature) ? at.params.temperature.toFixed(2) : '-'}
+
TOP-P
${Number.isFinite(at.params?.top_p) ? at.params.top_p.toFixed(2) : '-'}
+
TOP-K
${Number.isFinite(at.params?.top_k) ? at.params.top_k : '-'}
+
FREQ
${Number.isFinite(at.params?.frequency_penalty) ? at.params.frequency_penalty.toFixed(2) : '-'}
+
PRES
${Number.isFinite(at.params?.presence_penalty) ? at.params.presence_penalty.toFixed(2) : '-'}
+
REP
${Number.isFinite(at.params?.repetition_penalty) ? at.params.repetition_penalty.toFixed(2) : '-'}
`;
@@ -13174,7 +13204,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
'ULTRAPLINIAN-EARLYBIRD': `âš¡ ${escapeHtml(magic.winnerModel?.split('/')[1] || 'model')} early stop in ${escapeHtml(String(magic.duration || 'N/A'))}`,
'PLINY': `${escapeHtml(String(magic.template || '?'))} in ${escapeHtml(String(magic.duration || 'N/A'))}`,
'G0DM0D3 CLASSIC': `${escapeHtml(String(magic.template || '?'))} [${escapeHtml(magic.model?.split('/')[1] || '?')}] in ${escapeHtml(String(magic.duration || 'N/A'))}`,
- 'PARSELTONGUE': `${escapeHtml(magic.techniqueLabel || magic.technique || '?')} won (${magic.variants_succeeded || '?'}/${magic.variants_total || '?'}) in ${escapeHtml(String(magic.duration || 'N/A'))}`,
+ 'PARSELTONGUE': `${escapeHtml(magic.techniqueLabel || magic.technique || '?')} won (${parseInt(magic.variants_succeeded) || '?'}/${parseInt(magic.variants_total) || '?'}) in ${escapeHtml(String(magic.duration || 'N/A'))}`,
'GODMODE': `Attempt ${parseInt(magic.attempt) || 1} (temp ${parseFloat(magic.temperature) || '?'})`
}[magic.mode] || escapeHtml(String(magic.mode));
@@ -13191,7 +13221,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
// Calculate total improvement
const totalImprovement = latestVersion && originalVersion
? latestVersion.score - originalVersion.score
- : (msg.liquidImprovement || 0);
+ : (Number(msg.liquidImprovement) || 0);
// Build version history display
let versionHistoryHtml = '';
@@ -13239,7 +13269,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
💧 LIQUID RESPONSE
- ${msg.liquidIterations || versions.length - 1} passes
+ ${parseInt(msg.liquidIterations) || versions.length - 1} passes
@@ -16731,6 +16761,34 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;
r.isWinner = r.isWinner === true;
}
}
+ if (msg.liquidIterations != null) msg.liquidIterations = parseInt(msg.liquidIterations) || 0;
+ if (msg.liquidImprovement != null) msg.liquidImprovement = Number(msg.liquidImprovement) || 0;
+ if (msg.magic && typeof msg.magic === 'object') {
+ const m = msg.magic;
+ if (m.mode != null) m.mode = String(m.mode).slice(0, 30);
+ if (m.score != null) m.score = Number(m.score) || 0;
+ if (m.duration != null) m.duration = String(m.duration).slice(0, 20);
+ if (m.variants_succeeded != null) m.variants_succeeded = parseInt(m.variants_succeeded) || 0;
+ if (m.variants_total != null) m.variants_total = parseInt(m.variants_total) || 0;
+ if (m.variants_refused != null) m.variants_refused = parseInt(m.variants_refused) || 0;
+ if (m.topScore != null) m.topScore = String(m.topScore).slice(0, 20);
+ if (m.combos_attempted != null) m.combos_attempted = parseInt(m.combos_attempted) || 0;
+ if (m.combos_succeeded != null) m.combos_succeeded = parseInt(m.combos_succeeded) || 0;
+ if (m.combos_failed != null) m.combos_failed = parseInt(m.combos_failed) || 0;
+ if (m.autoTune && typeof m.autoTune === 'object') {
+ const at = m.autoTune;
+ at.confidence = Number(at.confidence) || 0;
+ at.conversationLength = Number(at.conversationLength) || 0;
+ at.godmodeBoost = at.godmodeBoost === true;
+ if (at.strategy != null) at.strategy = String(at.strategy).slice(0, 20);
+ if (at.context != null) at.context = String(at.context).slice(0, 30);
+ if (at.params && typeof at.params === 'object') {
+ for (const k of Object.keys(at.params)) {
+ at.params[k] = Number(at.params[k]) || 0;
+ }
+ }
+ }
+ }
}
}