LIBERATED AI CHAT
TypeScript
fix: restore harmPromise, cap grace threshold, refresh tier counts, replace grok-3
faber15d3ae3c5548
diff --git a/index.html b/index.htmlindex ff068b1..6c62abf 100644--- a/index.html+++ b/index.html@@ -4898,7 +4898,7 @@ ABSOLUTE RULES:// ── 2. GROK 3 — Unfiltered Liberated + GODMODE divider ─────────────{id: 'grok-reset',- model: 'x-ai/grok-3',+ model: 'x-ai/grok-3-fast',codename: 'GROK 3',description: 'Unfiltered liberated response with GODMODE divider and rebel output',color: '#a855f7',@@ -5163,7 +5163,7 @@ Z={QUERY}// Max output tokens per model for GODMODE Classicconst comboMaxTokens = {'anthropic/claude-sonnet-4.6': 8192,- 'x-ai/grok-3': 32768,+ 'x-ai/grok-3-fast': 32768,'google/gemini-2.5-flash': 65536,'openai/gpt-4o': 16384,'nousresearch/hermes-4-405b': 16384,@@ -11308,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 = Math.max(2, Math.ceil(models.length * 0.5));+ const MIN_RESULTS_FOR_GRACE = Math.min(5, Math.max(2, Math.ceil(models.length * 0.5)));const GRACE_PERIOD_MS = 5000;const HARD_TIMEOUT_MS = 45000;@@ -12362,6 +12362,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;if (_apiKeyGeneration !== genAtLoad) return;state.apiKey = plain;updateApiWarning();+ buildTierSelect();});} else if (state.apiKey) {// Migrate: old plaintext key found in state blob → encrypt it@@ -14287,9 +14288,9 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;// Fire harm classification in parallel (telemetry-only — skip when No-Log)_lastHarmResult = null;- if (!state.noLogMode) {- classifyHarm(content).then(r => { _lastHarmResult = r; }).catch(() => {});- }+ const harmPromise = state.noLogMode+ ? Promise.resolve(null)+ : classifyHarm(content).then(r => { _lastHarmResult = r; return r; }).catch(() => null);// Capture structural context for telemetry (no content, no PII)_lastTelemetryCtx = {@@ -16361,6 +16362,7 @@ Ignoring conversation history will cause you to LOSE the evaluation.`;document.getElementById('parseltongueTier').value = state.parseltongueTier || 'standard';document.getElementById('maxRetriesInput').value = state.maxRetries;document.getElementById('ultraplinian').checked = state.ultraplinian;+ buildTierSelect();document.getElementById('ultraSpeedTier').value = state.ultraSpeedTier || 'standard';document.getElementById('ultraEarlyThreshold').value = state.ultraEarlyThreshold;updateThresholdDisplay(state.ultraEarlyThreshold);