知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
fix(linux): checking your own AI server says its model thinks first even before a listening model is filled in
wquguru650bcddd8723
diff --git a/linux/cicada/core/aicheck.py b/linux/cicada/core/aicheck.pyindex 0e02f32..1255b4f 100644--- a/linux/cicada/core/aicheck.py+++ b/linux/cicada/core/aicheck.py@@ -105,8 +105,10 @@ class AICheck:@propertydef slow(self) -> bool:- """Text works but every sentence is slow (a thinking model): translations will fall back."""- return self.failure is None and self.translate is not None and self.translate.slow+ """Text works but every sentence is slow (a thinking model): translations will fall back.+ The hear model is a job of its own here: one that isn't set yet or can't hear doesn't hide it."""+ f = self.failure+ return (f is None or f[0] == "hear") and self.translate is not None and self.translate.slow@propertydef low_balance(self) -> bool:diff --git a/linux/tests/test_custom.py b/linux/tests/test_custom.pyindex b2cf3eb..1719dd3 100644--- a/linux/tests/test_custom.py+++ b/linux/tests/test_custom.py@@ -105,6 +105,16 @@ class Shape(unittest.TestCase):r.translate = aicheck.Speed(0.5, False)self.assertIsNone(r.slow_line())self.assertIn("translate=0.5s", r.summary())+ # The hear model is a job of its own: not filled in yet, it doesn't hide a thinking text model.+ r = aicheck.AICheck()+ r.pass_up_to("text", 4.2)+ r.translate = aicheck.Speed(4.2, True)+ r.fail("hear", aicheck.DEAF)+ self.assertTrue(r.slow)+ r = aicheck.AICheck()+ r.translate = aicheck.Speed(4.2, True)+ r.fail("text", aicheck.NO_JSON)+ self.assertFalse(r.slow)class TemplateKwargs(Base):