Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
docs(dictation): pin the preview budget to Groq's published limit
Ruben Lütkec50545fba8cc
diff --git a/jarvis/dictation/preview_budget.py b/jarvis/dictation/preview_budget.pyindex b4bde849e0..b24ccfda01 100644--- a/jarvis/dictation/preview_budget.py+++ b/jarvis/dictation/preview_budget.py@@ -36,11 +36,19 @@ import threadingimport time#: Preview calls allowed per rolling minute, across every dictation in this-#: process. Chosen against the tightest limit a free cloud STT tier commonly-#: grants (~20 requests/minute) MINUS the segment traffic that must always fit-#: (~7.5/min at the default 8 s segments), with room to spare — the cost of-#: guessing high is the very failure this exists to prevent, and the cost of-#: guessing low is only that the preview lags a little.+#: process.+#:+#: The budget is sized against a MEASURED limit, not a guess. Groq publishes 20+#: RPM / 2000 RPD for both whisper-large-v3 and whisper-large-v3-turbo, and —+#: this is the part worth knowing — the paid Developer plan carries the SAME 20+#: RPM as the free plan, so no amount of money buys a way out of this. The 2000+#: RPD matches the ``x-ratelimit-limit-requests`` header the maintainer's own+#: account returns, which is what confirms the figures apply here.+#:+#: 20 RPM minus the segment traffic that must always fit (~7.5/min at the+#: default 8 s segments) leaves ~12. Ten keeps a margin for the final pass and+#: its retries. Guessing high rebuilds the very failure this prevents; guessing+#: low only makes the preview lag a little, so the asymmetry decides.PREVIEW_CALLS_PER_MINUTE = 10_WINDOW_S = 60.0diff --git a/tests/unit/dictation/test_preview_budget.py b/tests/unit/dictation/test_preview_budget.pyindex 24e418262f..8c91a8ef5f 100644--- a/tests/unit/dictation/test_preview_budget.py+++ b/tests/unit/dictation/test_preview_budget.py@@ -60,8 +60,11 @@ def test_the_budget_is_shared_across_dictations():def test_the_default_leaves_room_for_the_segment_traffic():"""Segments close ~7.5x/min at the 8 s default and are NEVER budgeted.- The preview default plus that traffic has to stay under the tightest common- free-tier limit (~20 requests/minute), or the budget would be decorative.+ 20 RPM is Groq's published limit for both whisper models AND the limit its+ paid Developer plan carries — upgrading buys no relief, so the budget has to+ fit inside it. Preview plus segment traffic must stay under that or the+ budget would be decorative."""+ provider_rpm_limit = 20 # Groq whisper-large-v3, free AND developer plansegments_per_minute = 60 / 8.0- assert PREVIEW_CALLS_PER_MINUTE + segments_per_minute < 20+ assert PREVIEW_CALLS_PER_MINUTE + segments_per_minute < provider_rpm_limit