Add final Qwen3.8 runtime and uncensored profile

This commit is contained in:
Mikei386
2026-08-23 00:10:53 +02:00
parent 1a9d94d22f
commit 2ef894160a
57 changed files with 10089 additions and 54 deletions
+13
View File
@@ -24,6 +24,7 @@ from router_support import ( # noqa: E402
load_profile_registry,
)
from ai_profile_router import ( # noqa: E402
_context_matches,
_normalize_chat_image,
_normalize_chat_images,
_request_has_image,
@@ -74,10 +75,22 @@ class RuntimeStoreTests(unittest.TestCase):
class ProfileRegistryTests(unittest.TestCase):
def test_fallback_contains_uncensored_profile(self) -> None:
registry = load_profile_registry(None)
self.assertEqual(registry["uncensored"]["context"], 80000)
def test_explicit_missing_registry_fails_closed(self) -> None:
with self.assertRaises(ConfigurationError):
load_profile_registry("/definitely/missing/profiles.json")
def test_context_match_accepts_small_runtime_overhead(self) -> None:
self.assertTrue(_context_matches(80000, 80128))
self.assertTrue(_context_matches(160000, 160000))
def test_context_match_rejects_other_profiles_and_lower_context(self) -> None:
self.assertFalse(_context_matches(80000, 76800))
self.assertFalse(_context_matches(80000, 82000))
class ChatImageInputTests(unittest.TestCase):
def test_small_png_data_url_is_accepted(self) -> None: