mirror of
https://github.com/elder-plinius/G0DM0D3.git
synced 2026-11-16 07:02:25 +00:00
fix: restore harmPromise, cap grace threshold, refresh tier counts, replace grok-3
- Restore harmPromise as a defined variable (Promise.resolve(null) under No-Log) Fixes crash: harmPromise was awaited in 4 places but undefined when noLogMode=true - Cap MIN_RESULTS_FOR_GRACE at 5 so large races don't require too many successes - Call buildTierSelect() after credential decryption and on Settings open - Replace stale x-ai/grok-3 with x-ai/grok-3-fast in combo registry + max tokens Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
index.html
14
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 Classic
|
||||
const 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);
|
||||
|
||||
Reference in New Issue
Block a user