Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

319 B
Raw Blame
const voicePollRetryDelaysMs = [500, 1_000, 2_000, 5_000] as const;

export function voicePollRetryDelay(consecutiveFailures: number) {
  const index = Math.min(
    Math.max(0, consecutiveFailures - 1),
    voicePollRetryDelaysMs.length - 1,
  );
  return voicePollRetryDelaysMs[index] ?? voicePollRetryDelaysMs[0];
}