[Model] Integrate AURA into Full-Duplex Runtime (#7633)

This commit is contained in:
NumberWan authored and GitHub committed 2026-09-21 09:26:54 -07:00
1 parent d397a2f547
commit 62b15142bd
77 files changed
+7695 -457

No files matched your search

@@ -113,12 +113,23 @@ def test_qwen_config_does_not_inject_reference_voice():
assert '"profile": "qwen3-turn"' in page
assert '"adapter": "vad"' in page
assert '"refAudio": null' in page
for name in ("common", "minicpm_native", "qwen3_turn"):
for name in ("common", "minicpm_native", "qwen3_turn", "aura_ptt"):
assert client.get(f"/static/profiles/{name}.js").status_code == 200
with pytest.raises(ValueError, match="ref-audio"):
build_app(profile="qwen3-turn", ref_audio="unused.wav")
def test_aura_ptt_config_defaults_and_rejects_ref_audio():
client = TestClient(build_app(profile="aura-ptt", model="aurateam/AURA"))
page = client.get("/").text
assert '"profile": "aura-ptt"' in page
assert '"refAudio": null' in page
assert "aura_ptt.js" in page
assert 'id="pttButton"' in page
with pytest.raises(ValueError, match="ref-audio"):
build_app(profile="aura-ptt", ref_audio="unused.wav")
def test_config_cannot_close_its_script_element():
page = TestClient(build_app(model="</script><script>alert(1)</script>")).get("/").text
assert "</script><script>alert(1)" not in page