fix: Chatterbox uses separate classes per variant, remove turbo
ChatterboxTTS and ChatterboxMultilingualTTS are separate classes. Turbo variant doesn't exist in chatterbox-tts 0.1.7. Multilingual generate() requires language_id parameter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,8 +5,8 @@ def test_load_models_config_returns_physical_and_virtual():
|
||||
physical, virtual = load_models_config()
|
||||
assert isinstance(physical, dict)
|
||||
assert isinstance(virtual, dict)
|
||||
assert len(physical) == 9
|
||||
assert len(virtual) == 16
|
||||
assert len(physical) == 8
|
||||
assert len(virtual) == 15
|
||||
|
||||
|
||||
def test_physical_model_has_required_fields():
|
||||
|
||||
@@ -10,7 +10,7 @@ def registry():
|
||||
|
||||
def test_list_virtual_models(registry):
|
||||
models = registry.list_virtual_models()
|
||||
assert len(models) == 16
|
||||
assert len(models) == 15
|
||||
names = [m["id"] for m in models]
|
||||
assert "Qwen3.5-9B-FP8-Thinking" in names
|
||||
assert "GPT-OSS-20B-High" in names
|
||||
|
||||
@@ -45,7 +45,7 @@ def test_list_models_returns_16(client, auth_headers):
|
||||
assert resp.status_code == 200
|
||||
body = resp.json()
|
||||
assert body["object"] == "list"
|
||||
assert len(body["data"]) == 16
|
||||
assert len(body["data"]) == 15
|
||||
|
||||
|
||||
def test_list_models_contains_expected_names(client, auth_headers):
|
||||
|
||||
Reference in New Issue
Block a user