Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(n1): Regeln fuer Ton-Teil, LM-Studio-Runtime-Nummer und Projektor-Kopf nachgezogen; e2e-Client mit --session-extra

purple03998b450625
diff --git a/src-tauri/resources/voice_loop/tests/e2e_client.py b/src-tauri/resources/voice_loop/tests/e2e_client.py
index 0da956c0..6d642d2e 100644
--- a/src-tauri/resources/voice_loop/tests/e2e_client.py
+++ b/src-tauri/resources/voice_loop/tests/e2e_client.py
@@ -172,6 +172,9 @@ async def main() -> int:
p.add_argument("--llm-extra", default="{}")
p.add_argument("--wav", action="append", default=[])
p.add_argument("--barge-in")
+ # Further session fields, e.g. '{"stt": {...}, "tts": {...}}' to hear and
+ # speak through LFM3 Audio in Ollama or the LU Engine (N1).
+ p.add_argument("--session-extra", default="{}")
args = p.parse_args()
base = "http://127.0.0.1:%d" % args.port
@@ -180,6 +183,7 @@ async def main() -> int:
"llm": {"base_url": args.llm_base_url, "model": args.llm_model, "extra": json.loads(args.llm_extra)},
"system_prompt": SYSTEM_PROMPT,
"tools": TOOLS,
+ **json.loads(args.session_extra),
}
async with httpx.AsyncClient() as http:
for _ in range(600):
@@ -230,6 +234,10 @@ async def main() -> int:
print("\ntool calls relayed to client: %d, settled: %d" % (c.tool_calls, c.tool_results_seen))
print("audio received: %.1f s" % (c.audio_bytes / 2 / 24000))
+ heard = [d.get("text", "") for _, e, d in c.events if e == "user-transcription" and d.get("final", True)]
+ said = "".join(d.get("text", "") for _, e, d in c.events if e == "bot-llm-text")
+ print("heard: %s" % json.dumps(heard))
+ print("said: %s" % json.dumps(said[:400]))
errors = [d for _, e, d in c.events if e == "error"]
if errors:
print("RTVI errors: %d" % len(errors))
diff --git a/src/api/__tests__/discover-registry.test.ts b/src/api/__tests__/discover-registry.test.ts
index 66b84e76..38cfd608 100644
--- a/src/api/__tests__/discover-registry.test.ts
+++ b/src/api/__tests__/discover-registry.test.ts
@@ -423,6 +423,8 @@ describe('discover — data validation', () => {
expect(m.downloadUrl, `${m.name}: projector without a model file`).toBeTruthy()
expect(m.filename, `${m.name}: projector without a model filename`).toBeTruthy()
expect(m.mmprojSizeGB, `${m.name}: projector size`).toBeGreaterThan(0)
+ // N1: LFM3 Audio's projector is a sound part (Audio, not Vision).
+ if (m.tags.includes('Audio') && !m.tags.includes('Vision')) continue
expect(m.tags, `${m.name}: projector but no Vision tag`).toContain('Vision')
}
})
diff --git a/src/lib/__tests__/eine-versionsquelle.test.ts b/src/lib/__tests__/eine-versionsquelle.test.ts
index f082014b..5413216f 100644
--- a/src/lib/__tests__/eine-versionsquelle.test.ts
+++ b/src/lib/__tests__/eine-versionsquelle.test.ts
@@ -112,6 +112,8 @@ describe('one version, one source', () => {
if (/@tauri-apps\/api\/app['"]/.test(text) && /\bgetVersion\b/.test(text)) offenders.push(`${rel}: getVersion()`)
// The release notes are a list of past versions by design, the phone's as well.
if (rel === 'src/lib/release-notes.ts' || rel === 'src/mobile/strings/release-notes.ts') continue
+ // LM Studio's runtime number that LFM3 needs (N1), not a version of LU.
+ if (rel === 'src/lib/lmstudio-runtime.ts') continue
for (const m of text.matchAll(typedIn)) {
const n = Number(m[1])
if (n >= 2 && n <= major) offenders.push(`${rel}: ${m[0]}`)
diff --git a/src/lib/__tests__/vision-heal.test.ts b/src/lib/__tests__/vision-heal.test.ts
index f260be6c..02c4fcb2 100644
--- a/src/lib/__tests__/vision-heal.test.ts
+++ b/src/lib/__tests__/vision-heal.test.ts
@@ -136,6 +136,7 @@ describe('the agent loop actually wires the N3 rules', () => {
expect(rust).toContain('let image_part = model_can_see_images(&m.path);')
expect(rust).toContain('"vision": if is_loaded { loaded_sees } else { image_part }')
// The same file the engine turns into --mmproj, not a second opinion.
- expect(rust).toContain('existing_mmproj(model_path).is_some()')
+ // N1: and only when that part is an image part (an LFM3 Audio part hears).
+ expect(rust).toContain('existing_mmproj(model_path).is_some_and(|p| projector_sees_images(&p))')
})
})