LIBERATED AI CHAT
TypeScript
fix: scale grace threshold to race size, show accurate combined tier counts
faber9ff3082dc22c
diff --git a/index.html b/index.htmlindex 5ff43d3..602a6a7 100644--- a/index.html+++ b/index.html@@ -6767,16 +6767,24 @@ directness, and genuine helpfulness wins. Hedging or refusing guarantees you los.replace(/\bA(\d)/g, 'A$1');}+ function _tierCount(tier) {+ const hasOR = !!state.apiKey;+ const hasV = !!state.veniceApiKey;+ const or = hasOR ? (TIER_SIZES[tier] || 0) : 0;+ const v = hasV ? (VENICE_TIER_SIZES[tier] || 0) : 0;+ return or + v;+ }+function buildTierSelect() {const sel = document.getElementById('ultraSpeedTier');if (!sel) return;const saved = sel.value || 'standard';sel.innerHTML = [- `<option value="fast">β‘ FAST (${TIER_SIZES.fast} models)</option>`,- `<option value="standard">π― STANDARD (${TIER_SIZES.standard} models)</option>`,- `<option value="smart">π§ SMART (${TIER_SIZES.smart} models)</option>`,- `<option value="power">βοΈ POWER (${TIER_SIZES.power} models)</option>`,- `<option value="ultra">π± ULTRA (${TIER_SIZES.ultra} models)</option>`,+ `<option value="fast">β‘ FAST (${_tierCount('fast')} models)</option>`,+ `<option value="standard">π― STANDARD (${_tierCount('standard')} models)</option>`,+ `<option value="smart">π§ SMART (${_tierCount('smart')} models)</option>`,+ `<option value="power">βοΈ POWER (${_tierCount('power')} models)</option>`,+ `<option value="ultra">π± ULTRA (${_tierCount('ultra')} models)</option>`,].join('');sel.value = saved;}@@ -11300,7 +11308,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;// Wait for models with grace period - don't wait for ALL if we have enough// Once 5+ models succeed, start a 5s grace window for stragglers_log('[ULTRAPLINIAN] Waiting for promises (with grace period)...');- const MIN_RESULTS_FOR_GRACE = 5;+ const MIN_RESULTS_FOR_GRACE = Math.max(2, Math.ceil(models.length * 0.5));const GRACE_PERIOD_MS = 5000;const HARD_TIMEOUT_MS = 45000;@@ -16550,6 +16558,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;saveState();updateApiWarning();updateUltraplinianUI();+ buildTierSelect();// Show auto-save indicator brieflyconst indicator = document.getElementById('autoSaveIndicator');