Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

fixup: skip the pty harness on Windows — no termios there

JustVugg2b8bf82d9660
diff --git a/c/tests/test_chat_thinking.py b/c/tests/test_chat_thinking.py
index 6c8f5cc3..e9368acf 100644
--- a/c/tests/test_chat_thinking.py
+++ b/c/tests/test_chat_thinking.py
@@ -15,11 +15,16 @@ import importlib.machinery
import importlib.util
import json
import os
-import pty
import sys
import threading
import time
import unittest
+
+try:
+ import pty # POSIX-only: no termios/pty on Windows.
+ HAVE_PTY = True
+except ImportError: # The TUI path under test needs a real
+ HAVE_PTY = False # terminal; Linux and macOS runners cover it.
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from types import SimpleNamespace
@@ -122,6 +127,7 @@ def run_chat(base, extra_env):
return output.decode("utf-8", "replace")
[email protected](HAVE_PTY, "pty is POSIX-only; covered on Linux/macOS")
class ChatThinkingTest(unittest.TestCase):
@classmethod
def setUpClass(cls):