fix(gateway): constrain verified Qwen replies to emotion schema

This commit is contained in:
zenord
2026-10-12 12:18:18 +08:00
parent b521d368a5
commit 18ec4c2104
18 changed files with 351 additions and 60 deletions
+90 -35
View File
@@ -1,7 +1,7 @@
{
"baseline_android_commit": "9b428fb76ffa1468aa46124b33d9c598cf3740d8",
"source": "SPARK-2 deployed lan-voice gateway",
"code_version": "0.7.1 (legacy health version; reply.emotion version 1 capability)",
"code_version": "0.7.2 (streaming json_schema for verified local provider; reply.emotion version 1)",
"python": "3.12.3",
"machine": "aarch64",
"scope": "whitelisted source only; no runtime/models/credentials",
@@ -33,8 +33,8 @@
},
"gateway.py": {
"source": "workspace:gateway/gateway.py",
"sha256": "b8e64e9387fca05808fac61bd097ae179e996a2c7ccd33f23bb729a61693dd0d",
"bytes": 38559,
"sha256": "06797c4d327977eef755f72db70ef91ff6925ca20cc5ae8a6cefb5ffa1890534",
"bytes": 38786,
"upstream_sha256": "d088bedcf5c0accd4712e06202f6ced8ab155aad57a5b05683724efa346326ce"
},
"guest_sessions.py": {
@@ -63,14 +63,16 @@
"bytes": 330
},
"personas/lvbu.lorebook.json": {
"source": "personas/lvbu.lorebook.json",
"sha256": "266078a2aed07dcbcf3283ae102a8215cef6c181bb240ac5e53ee240414721e4",
"bytes": 1322
"source": "workspace:gateway/personas/lvbu.lorebook.json",
"sha256": "1f144b431bdd5d9cda0ce593438fa88e717c0671d496105883a3d4db7bd635ea",
"bytes": 1413,
"upstream_sha256": "266078a2aed07dcbcf3283ae102a8215cef6c181bb240ac5e53ee240414721e4"
},
"personas/yangmi.lorebook.json": {
"source": "personas/yangmi.lorebook.json",
"sha256": "d3b0201dff992b1bd0258d4aa06f8e7688322c9904c0b885aa6cf7be7046717d",
"bytes": 3212
"source": "workspace:gateway/personas/yangmi.lorebook.json",
"sha256": "73badae3fd8582555caa338e50fb6193e64e6a43025dd469672aa903c1c4b71b",
"bytes": 3303,
"upstream_sha256": "d3b0201dff992b1bd0258d4aa06f8e7688322c9904c0b885aa6cf7be7046717d"
},
"protocol.py": {
"source": "protocol.py",
@@ -145,9 +147,10 @@
"bytes": 8570
},
"tests/test_personas.py": {
"source": "tests/test_personas.py",
"sha256": "2576f2be903c69270cb1dec1e12448154554798bd7fca866d78e66e31594cbcb",
"bytes": 1288
"source": "workspace:gateway/tests/test_personas.py",
"sha256": "013b18e7b7f0e582d8d7e04f5b1fb78009e993f96357be67a5367e70444b43e1",
"bytes": 1840,
"upstream_sha256": "2576f2be903c69270cb1dec1e12448154554798bd7fca866d78e66e31594cbcb"
},
"tests/test_segmentation.py": {
"source": "tests/test_segmentation.py",
@@ -246,8 +249,8 @@
},
"README.md": {
"source": "workspace:gateway/README.md",
"sha256": "cc32a5d3cd21975ece637f467c5c2f4ca2bc6c90b3fd450a3da909a116b11d5e",
"bytes": 7397,
"sha256": "8e13b5532e5af921b411d5fa8185e9e8efbef42859f47ec3615099bb87304c10",
"bytes": 9220,
"upstream_sha256": "799bc84308eb17d58987c5bee8ce3cf7617b4c52169d9307d344ac7d9996b6c5"
},
"config/active_profile.json.example": {
@@ -272,8 +275,8 @@
},
"env.example": {
"source": "workspace:gateway/env.example",
"sha256": "ec703e599d66f6848f7a4415da851a87c8446dd92805a8ce83e46bd690502367",
"bytes": 796,
"sha256": "ccc97d0e357d8120303cedf7947e1ba302070980a14cc8801f2424344fcab820",
"bytes": 1115,
"upstream_sha256": "d92e60812f49b02f3b0582d8b3dee03eb51cfca6dba77d9468a3ffddfce32499"
},
"pytest.ini": {
@@ -283,8 +286,8 @@
},
"reply_emotion.py": {
"source": "workspace:gateway/reply_emotion.py",
"sha256": "a2b6a1a51639d77368c200f2a6db8bb66fff1eebb4f60219d49da69ae402a8a2",
"bytes": 4005,
"sha256": "a32b9dedc135cac1ed6f25f33123946152a6bd3dc8d0d816a897c00b9e444ead",
"bytes": 4343,
"upstream_sha256": "488fbd24ff1ce7d3d4ab92257c8ccabafe24fc857e11c8486f54fa689276a565"
},
"scripts/check-archive.py": {
@@ -295,26 +298,26 @@
},
"tests/test_gateway_emotion.py": {
"source": "workspace:gateway/tests/test_gateway_emotion.py",
"sha256": "e4da9a092e6ee19ef421a43a04cd2b6d12cb65f1b210946092dcad016c8816bb",
"bytes": 7923,
"sha256": "51a8f751d14345fe2ccf3afd9250b0962f0ab260a97023afcee4a7b9b0f535d0",
"bytes": 8535,
"upstream_sha256": "86f22211e753e4b5ebfa11266e2e33eb2ea6b85707fbe8a988be6b8ff05f3f75"
},
"tests/test_reply_emotion.py": {
"source": "workspace:gateway/tests/test_reply_emotion.py",
"sha256": "2bd1ee33f11e2d23ccf9a30603f0db3b9f20c6d5fce8001f37f9ca76167974dd",
"bytes": 4678,
"sha256": "4ff2774187df8220ddbc8ef5b79910ae5047af3bacdb9476b0d2a8f55929d3be",
"bytes": 4693,
"upstream_sha256": "e45ccda640ef758fcb925d53804071349bdc8fb9f43ee1f63d1afb2ee3f238f5"
},
"llm_provider.py": {
"source": "workspace:gateway/llm_provider.py",
"sha256": "56ce6c1a4a647dea6ef86a83615f03db3a4397ebb3fa800b7fa655147d4f9978",
"bytes": 1471,
"sha256": "21aa2885c24f3240e891fd5325b09446ae1d8a95497d07a53082410d9fac2b10",
"bytes": 2447,
"upstream_sha256": "7d853adbe79f5f861a36894a9dfa28aa553d3eabea4db4c87a5fb4c319818ef1"
},
"tests/test_llm_provider.py": {
"source": "workspace:gateway/tests/test_llm_provider.py",
"sha256": "45404653daa71a006a90852b2f07f00cac608bd7311dd5ea850da0c1a3e52940",
"bytes": 5601,
"sha256": "43669d1fd7e61452b96f314a7f161fbcec843e463c74208d0f892fb58b839785",
"bytes": 8360,
"upstream_sha256": "6a8bd33679d68899c2a978bf4de672578517494c613b8e77d275c6207de3285b"
}
},
@@ -349,29 +352,31 @@
},
"release_baseline_commit": "d43c7d4e809a5a6b18ca9f28c8163a2f9ad34c7f",
"deployment_baseline": {
"release": "0.5.0",
"release": "gateway-0.7.2 / Android-0.5.1",
"files": {
"app.py": "d6520894dfbe035f64b1984aae15976db4df0e7e720195c81d3bf483b240056f",
"face_context.py": "01abfc214ebb4e979faf9430166eccae9af37df911d36da5435f907769e7e31a",
"gateway.py": "d9215f99339de0667e830fbd4d3bff80ac5a61c85630cc4ecadcb52a4c33a0e5",
"gateway.py": "06797c4d327977eef755f72db70ef91ff6925ca20cc5ae8a6cefb5ffa1890534",
"guest_sessions.py": "cc082fdb6c2ff7f5a41361ffe9ea2a53ebb944ee37354f65119405ad7a521c82",
"history.py": "2cf8b006bf486a03e038a69daa860ebb71a86989161cf6a7ea610114177a249f",
"llm_provider.py": "56ce6c1a4a647dea6ef86a83615f03db3a4397ebb3fa800b7fa655147d4f9978",
"llm_provider.py": "21aa2885c24f3240e891fd5325b09446ae1d8a95497d07a53082410d9fac2b10",
"persona_resolver.py": "deb33b4f4c17792fa5a6837362d5b29173e60a57bb993b61363bd4882d66d5de",
"personas/lvbu.lorebook.json": "1f144b431bdd5d9cda0ce593438fa88e717c0671d496105883a3d4db7bd635ea",
"personas/yangmi.lorebook.json": "73badae3fd8582555caa338e50fb6193e64e6a43025dd469672aa903c1c4b71b",
"protocol.py": "d9f522d958935200002e56024949a12b71eb89b3f3241635c5c307b798ee71c5",
"reply_emotion.py": "488fbd24ff1ce7d3d4ab92257c8ccabafe24fc857e11c8486f54fa689276a565",
"reply_emotion.py": "a32b9dedc135cac1ed6f25f33123946152a6bd3dc8d0d816a897c00b9e444ead",
"segmentation.py": "562ffc6e06f5b9f9072860b588feae3a5d7cd6eaa8577ac928d770071b06978d",
"tests/test_continuity.py": "d8390238f390463a98f12b9909bb5846be65f5b6dc1b21b94338b4cd75aaafae",
"tests/test_debug.py": "26f9e374354b714ab1a03b56af90bcbf32135711dc4f26e2c53eaa90c7f02ddd",
"tests/test_debug.py": "7d1d7876c4106f3df0b84cf8f7e479afb4a30ca51264fb94fa288fdd8155883e",
"tests/test_face_context.py": "50ca57adee1d07a194ebaa95b15e09d3e836b97b19490e99e3e045c72a89682c",
"tests/test_gateway.py": "f22aa98f3d6f62a2949a9047ec97e6dd686cac807d989a314a95deca718a3104",
"tests/test_gateway_emotion.py": "fc01e9319263b93adb1cc93904d23a13a25965ddb0fcfbd9c3e14e39f4cf52a5",
"tests/test_gateway_emotion.py": "51a8f751d14345fe2ccf3afd9250b0962f0ab260a97023afcee4a7b9b0f535d0",
"tests/test_gateway_reply_face.py": "4a4a8fd997941c0d92356c2ebab2c336abbcf84954735a6955d8fa7e3700ec3f",
"tests/test_guests.py": "6bc531f1bff85b8ea550bc88c634726531a1ef241ba5c861dbb8c963adf31c35",
"tests/test_history.py": "fc13a69811cfc4f4acf265ea9e0cdd67d566358ebe9b9b53cae76197db8bce78",
"tests/test_llm_provider.py": "45404653daa71a006a90852b2f07f00cac608bd7311dd5ea850da0c1a3e52940",
"tests/test_personas.py": "2576f2be903c69270cb1dec1e12448154554798bd7fca866d78e66e31594cbcb",
"tests/test_reply_emotion.py": "324fdaf55b501a31af129d41e9cf459f741ff0636818a6c628657dfde3fa6344",
"tests/test_llm_provider.py": "43669d1fd7e61452b96f314a7f161fbcec843e463c74208d0f892fb58b839785",
"tests/test_personas.py": "013b18e7b7f0e582d8d7e04f5b1fb78009e993f96357be67a5367e70444b43e1",
"tests/test_reply_emotion.py": "4ff2774187df8220ddbc8ef5b79910ae5047af3bacdb9476b0d2a8f55929d3be",
"tests/test_segmentation.py": "cf80a74958a715a81180a7932efb84f1d0974b434cf4fc3354b68c604ccbf463",
"tests/test_v08.py": "f993d4162576494e814786f26376ba80ab8a77af98ba70de4379055bb9525082",
"tests/test_vad.py": "bff64c0aafa05c085af7c1c9418244609129d405320fe1080b4ba05a8e304228",
@@ -379,5 +384,55 @@
"tts_debug.py": "d7b31b98a7f8ab688981873ef81decdf0b2f0167113c9103df039b7b24c9ccf2",
"vad.py": "3718ff9b296b2bba447100af520a631f221dcbfa322dd564cdc5809fb3675f23"
}
},
"server_capabilities": {
"structured_output_env": "LAN_LLM_STRUCTURED_OUTPUT",
"modes": [
"prompt",
"json_schema"
],
"verified_default": {
"base_url": "http://127.0.0.1:8888/v1",
"model": "qwen3.8-27b",
"chat_template_kwargs": {
"enable_thinking": false
}
},
"doubao_schema_verified": false
},
"previous_deployment_baseline": {
"release": "0.5.1",
"commit": "b521d368a5a5bab77599c860f651dce04b0de67e",
"files": {
"app.py": "d6520894dfbe035f64b1984aae15976db4df0e7e720195c81d3bf483b240056f",
"face_context.py": "01abfc214ebb4e979faf9430166eccae9af37df911d36da5435f907769e7e31a",
"gateway.py": "b8e64e9387fca05808fac61bd097ae179e996a2c7ccd33f23bb729a61693dd0d",
"guest_sessions.py": "cc082fdb6c2ff7f5a41361ffe9ea2a53ebb944ee37354f65119405ad7a521c82",
"history.py": "2cf8b006bf486a03e038a69daa860ebb71a86989161cf6a7ea610114177a249f",
"llm_provider.py": "56ce6c1a4a647dea6ef86a83615f03db3a4397ebb3fa800b7fa655147d4f9978",
"persona_resolver.py": "deb33b4f4c17792fa5a6837362d5b29173e60a57bb993b61363bd4882d66d5de",
"protocol.py": "d9f522d958935200002e56024949a12b71eb89b3f3241635c5c307b798ee71c5",
"reply_emotion.py": "a2b6a1a51639d77368c200f2a6db8bb66fff1eebb4f60219d49da69ae402a8a2",
"segmentation.py": "562ffc6e06f5b9f9072860b588feae3a5d7cd6eaa8577ac928d770071b06978d",
"tests/test_continuity.py": "d8390238f390463a98f12b9909bb5846be65f5b6dc1b21b94338b4cd75aaafae",
"tests/test_debug.py": "7d1d7876c4106f3df0b84cf8f7e479afb4a30ca51264fb94fa288fdd8155883e",
"tests/test_face_context.py": "50ca57adee1d07a194ebaa95b15e09d3e836b97b19490e99e3e045c72a89682c",
"tests/test_gateway.py": "f22aa98f3d6f62a2949a9047ec97e6dd686cac807d989a314a95deca718a3104",
"tests/test_gateway_emotion.py": "e4da9a092e6ee19ef421a43a04cd2b6d12cb65f1b210946092dcad016c8816bb",
"tests/test_gateway_reply_face.py": "4a4a8fd997941c0d92356c2ebab2c336abbcf84954735a6955d8fa7e3700ec3f",
"tests/test_guests.py": "6bc531f1bff85b8ea550bc88c634726531a1ef241ba5c861dbb8c963adf31c35",
"tests/test_history.py": "fc13a69811cfc4f4acf265ea9e0cdd67d566358ebe9b9b53cae76197db8bce78",
"tests/test_llm_provider.py": "45404653daa71a006a90852b2f07f00cac608bd7311dd5ea850da0c1a3e52940",
"tests/test_personas.py": "2576f2be903c69270cb1dec1e12448154554798bd7fca866d78e66e31594cbcb",
"tests/test_reply_emotion.py": "2bd1ee33f11e2d23ccf9a30603f0db3b9f20c6d5fce8001f37f9ca76167974dd",
"tests/test_segmentation.py": "cf80a74958a715a81180a7932efb84f1d0974b434cf4fc3354b68c604ccbf463",
"tests/test_v08.py": "f993d4162576494e814786f26376ba80ab8a77af98ba70de4379055bb9525082",
"tests/test_vad.py": "bff64c0aafa05c085af7c1c9418244609129d405320fe1080b4ba05a8e304228",
"tests_fake.py": "9a40f1948352f69f1dd20f8514baef58ae3d11eec240e1d2324d8990bad915d8",
"tts_debug.py": "d7b31b98a7f8ab688981873ef81decdf0b2f0167113c9103df039b7b24c9ccf2",
"vad.py": "3718ff9b296b2bba447100af520a631f221dcbfa322dd564cdc5809fb3675f23",
"personas/lvbu.lorebook.json": "266078a2aed07dcbcf3283ae102a8215cef6c181bb240ac5e53ee240414721e4",
"personas/yangmi.lorebook.json": "d3b0201dff992b1bd0258d4aa06f8e7688322c9904c0b885aa6cf7be7046717d"
}
}
}