Fix: wait for settled Svelte test variants

Reuse the shared mount-aware cycling helper before subsequent clicks and reload. Keep the DeepSeek request limits scoped to that provider so other provider defaults stay unchanged.

Prepared with AI assistance under maintainer direction.
This commit is contained in:
Paul Bakaus
2026-09-04 19:29:46 -07:00
parent dc5c4b2184
commit cc988144a0
2 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -620,10 +620,10 @@ export async function createLlmAgent(opts = {}) {
max_tokens: 4096,
system: systemBlocks(STEER_SYSTEM_INSTRUCTIONS),
messages: [{ role: 'user', content: userMessage }],
}, {
}, provider === 'deepseek' ? {
maxRetries: LLM_REQUEST_MAX_RETRIES,
timeout: MANUAL_EDIT_REQUEST_TIMEOUT_MS,
});
} : {});
const cacheRead = response.usage?.cache_read_input_tokens ?? 0;
const inputTokens = response.usage?.input_tokens ?? 0;