chore: Sprachmittler OpenCode starter kit

This commit is contained in:
schihei committed 2026-11-26 11:59:38 +01:00
commit 374085ec2f
94 files changed
+4563

No files matched your search

@@ -0,0 +1,6 @@
import Testing
@testable import SprachmittlerCapture
@Test func moduleLinks() {
#expect(SprachmittlerCaptureModule.moduleName == "SprachmittlerCapture")
}
@@ -0,0 +1,6 @@
import Testing
@testable import SprachmittlerCore
@Test func moduleLinks() {
#expect(SprachmittlerCoreModule.moduleName == "SprachmittlerCore")
}
@@ -0,0 +1,3 @@
# Engine fixtures
`default-prompt.txt` is the canonical Hy-MT3 default template used by the placeholder test. T2.2 adds golden files per prompt variant and direction. Keep prompts byte-exact; update a golden file only with an explanation.
@@ -0,0 +1,3 @@
Translate the following text into {target_lang}. Note that you should **only output the translated result without any additional explanation**:
{source_text}
@@ -0,0 +1,18 @@
import Foundation
import Testing
@testable import SprachmittlerEngines
@Test func moduleLinks() {
#expect(SprachmittlerEnginesModule.moduleName == "SprachmittlerEngines")
}
/// T2.2 will replace this with a byte-exact comparison against the adapter's prompt.
@Test func canonicalDefaultPromptFixtureIsTheDocumentedTemplate() throws {
let base = try #require(Bundle.module.resourceURL)
let url = base.appendingPathComponent("Fixtures/default-prompt.txt")
let prompt = try String(contentsOf: url, encoding: .utf8)
#expect(prompt.contains("{target_lang}"))
#expect(prompt.contains("{source_text}"))
#expect(prompt.contains("**only output the translated result without any additional explanation**"))
#expect(prompt.contains(":\n\n"))
}
@@ -0,0 +1,6 @@
import Testing
@testable import SprachmittlerEval
@Test func moduleLinks() {
#expect(SprachmittlerEvalModule.moduleName == "SprachmittlerEval")
}
@@ -0,0 +1,6 @@
import Testing
@testable import SprachmittlerCore
@Test func moduleLinks() {
#expect(SprachmittlerCoreModule.moduleName == "SprachmittlerCore")
}
@@ -0,0 +1,14 @@
# Ollama fixtures
This folder is populated by `scripts/capture-fixtures.sh` (T1.1) against a real local Ollama.
Expected files:
- `version.json`, `tags.json`, `ps.json`
- `show-*.json`
- `chat-*-en-de.ndjson`, `chat-*-de-en.ndjson`, `chat-*-markdown.ndjson`
- `chat-*-truncated.ndjson`
- `error-missing-model.json`
- `capture-meta.json`
Rules: synthetic input only, each file under 200 KB, never private text. Recorded fixtures are owned by `make fixtures`; ask before editing them.
@@ -0,0 +1,13 @@
{
"date": "2026-11-26T10:50:04Z",
"ollama": "0.40.18",
"hardware": "Apple M5 Pro",
"memoryBytes": "51539607552",
"input": "synthetic EN/DE/Markdown",
"models": [
{
"model": "hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M",
"digest": "262ac792aeb5"
}
]
}
@@ -0,0 +1,26 @@
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.999173Z","message":{"role":"assistant","content":"Size"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.026416Z","message":{"role":"assistant","content":" changes"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.048719Z","message":{"role":"assistant","content":" and"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.076474Z","message":{"role":"assistant","content":" roads"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.098414Z","message":{"role":"assistant","content":" are"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.119328Z","message":{"role":"assistant","content":" important"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.143258Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.166468Z","message":{"role":"assistant","content":" Please"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.191479Z","message":{"role":"assistant","content":" open"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.216114Z","message":{"role":"assistant","content":" https"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.241732Z","message":{"role":"assistant","content":"://"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.265654Z","message":{"role":"assistant","content":"example"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.287662Z","message":{"role":"assistant","content":".de"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.316362Z","message":{"role":"assistant","content":"/h"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.341857Z","message":{"role":"assistant","content":"il"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.364919Z","message":{"role":"assistant","content":"fe"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.386826Z","message":{"role":"assistant","content":" and"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.408914Z","message":{"role":"assistant","content":" set"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.431967Z","message":{"role":"assistant","content":" the"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.456708Z","message":{"role":"assistant","content":" limit"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.477947Z","message":{"role":"assistant","content":" to"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.49891Z","message":{"role":"assistant","content":" {{"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.520627Z","message":{"role":"assistant","content":"limit"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.542168Z","message":{"role":"assistant","content":"}}"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.565442Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.586143Z","message":{"role":"assistant","content":""},"done":true,"done_reason":"stop","total_duration":685861833,"load_duration":938583,"prompt_eval_count":56,"prompt_eval_cached_count":6,"prompt_eval_duration":92529000,"eval_count":26,"eval_duration":586872000}
@@ -0,0 +1,39 @@
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.041299Z","message":{"role":"assistant","content":"Der"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.062402Z","message":{"role":"assistant","content":" schn"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.082942Z","message":{"role":"assistant","content":"elle"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.104113Z","message":{"role":"assistant","content":" bra"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.124845Z","message":{"role":"assistant","content":"une"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.145739Z","message":{"role":"assistant","content":" F"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.16648Z","message":{"role":"assistant","content":"uchs"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.187129Z","message":{"role":"assistant","content":" spring"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.208482Z","message":{"role":"assistant","content":"t"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.228993Z","message":{"role":"assistant","content":" über"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.249733Z","message":{"role":"assistant","content":" den"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.270729Z","message":{"role":"assistant","content":" fa"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.292143Z","message":{"role":"assistant","content":"ulen"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.313133Z","message":{"role":"assistant","content":" Hund"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.335165Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.357874Z","message":{"role":"assistant","content":" Bitte"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.380728Z","message":{"role":"assistant","content":" öff"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.40349Z","message":{"role":"assistant","content":"ne"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.426946Z","message":{"role":"assistant","content":" https"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.453306Z","message":{"role":"assistant","content":"://"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.475121Z","message":{"role":"assistant","content":"example"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.495912Z","message":{"role":"assistant","content":".com"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.517223Z","message":{"role":"assistant","content":"/docs"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.540613Z","message":{"role":"assistant","content":"?"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.564655Z","message":{"role":"assistant","content":"lang"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.586532Z","message":{"role":"assistant","content":"=en"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.610249Z","message":{"role":"assistant","content":" und"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.633386Z","message":{"role":"assistant","content":" set"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.658404Z","message":{"role":"assistant","content":"ze"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.681504Z","message":{"role":"assistant","content":" die"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.703193Z","message":{"role":"assistant","content":" Beg"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.725477Z","message":{"role":"assistant","content":"ren"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.749429Z","message":{"role":"assistant","content":"zung"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.771122Z","message":{"role":"assistant","content":" auf"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.792122Z","message":{"role":"assistant","content":" {{"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.815377Z","message":{"role":"assistant","content":"limit"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.836742Z","message":{"role":"assistant","content":"}}"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.858155Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:01.878784Z","message":{"role":"assistant","content":""},"done":true,"done_reason":"stop","total_duration":1097586000,"load_duration":800042,"prompt_eval_count":54,"prompt_eval_cached_count":40,"prompt_eval_duration":255365000,"eval_count":39,"eval_duration":837305000}
@@ -0,0 +1,41 @@
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.772327Z","message":{"role":"assistant","content":"#"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.794702Z","message":{"role":"assistant","content":" Release"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.818863Z","message":{"role":"assistant","content":"-"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.841715Z","message":{"role":"assistant","content":"Not"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.863613Z","message":{"role":"assistant","content":"izen"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.886164Z","message":{"role":"assistant","content":"\n\n"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.906353Z","message":{"role":"assistant","content":"Ö"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.926587Z","message":{"role":"assistant","content":"ff"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.946987Z","message":{"role":"assistant","content":"ne"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.967266Z","message":{"role":"assistant","content":" **"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:02.987899Z","message":{"role":"assistant","content":"E"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.009445Z","message":{"role":"assistant","content":"inst"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.032835Z","message":{"role":"assistant","content":"ellungen"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.054065Z","message":{"role":"assistant","content":"**"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.076403Z","message":{"role":"assistant","content":" und"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.098292Z","message":{"role":"assistant","content":" set"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.120065Z","message":{"role":"assistant","content":"ze"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.14216Z","message":{"role":"assistant","content":" `"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.165036Z","message":{"role":"assistant","content":"max"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.186887Z","message":{"role":"assistant","content":"_tokens"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.210027Z","message":{"role":"assistant","content":"`"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.232047Z","message":{"role":"assistant","content":" auf"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.253984Z","message":{"role":"assistant","content":" {{"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.276083Z","message":{"role":"assistant","content":"limit"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.299105Z","message":{"role":"assistant","content":"}}"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.326721Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.349855Z","message":{"role":"assistant","content":" Sie"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.375916Z","message":{"role":"assistant","content":"he"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.39872Z","message":{"role":"assistant","content":" ["},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.425595Z","message":{"role":"assistant","content":"die"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.44871Z","message":{"role":"assistant","content":" Dok"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.470652Z","message":{"role":"assistant","content":"ument"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.495128Z","message":{"role":"assistant","content":"ation"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.518055Z","message":{"role":"assistant","content":"]("},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.543014Z","message":{"role":"assistant","content":"https"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.564178Z","message":{"role":"assistant","content":"://"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.586378Z","message":{"role":"assistant","content":"example"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.607084Z","message":{"role":"assistant","content":".com"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.627655Z","message":{"role":"assistant","content":"/docs"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.648102Z","message":{"role":"assistant","content":")."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.66923Z","message":{"role":"assistant","content":""},"done":true,"done_reason":"stop","total_duration":1060656625,"load_duration":982125,"prompt_eval_count":55,"prompt_eval_cached_count":24,"prompt_eval_duration":158860000,"eval_count":41,"eval_duration":896534000}
@@ -0,0 +1,17 @@
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.719059Z","message":{"role":"assistant","content":"Der"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.741856Z","message":{"role":"assistant","content":" schn"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.763971Z","message":{"role":"assistant","content":"elle"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.788457Z","message":{"role":"assistant","content":" bra"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.816115Z","message":{"role":"assistant","content":"une"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.837982Z","message":{"role":"assistant","content":" F"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.859818Z","message":{"role":"assistant","content":"uchs"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.882871Z","message":{"role":"assistant","content":" spring"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.903597Z","message":{"role":"assistant","content":"t"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.924467Z","message":{"role":"assistant","content":" über"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.945168Z","message":{"role":"assistant","content":" den"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.96565Z","message":{"role":"assistant","content":" fa"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:03.986248Z","message":{"role":"assistant","content":"ulen"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:04.006813Z","message":{"role":"assistant","content":" Hund"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:04.027953Z","message":{"role":"assistant","content":"."},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:04.05037Z","message":{"role":"assistant","content":" Bitte"},"done":false}
{"model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","created_at":"2026-11-26T10:50:04.05045Z","message":{"role":"assistant","content":""},"done":true,"done_reason":"length","total_duration":360730916,"load_duration":829666,"prompt_eval_count":54,"prompt_eval_cached_count":53,"prompt_eval_duration":22903000,"eval_count":16,"eval_duration":332421000}
@@ -0,0 +1 @@
{"error":"model 'sprachmittler/does-not-exist' not found"}
@@ -0,0 +1 @@
{"models":[{"name":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","size":6488609259,"digest":"262ac792aeb50fb8dfeae6feea465dfb10a0542dc9931c24de0a88d6b44fd1e7","details":{"parent_model":"","format":"gguf","family":"hunyuan-dense","families":["hunyuan-dense"],"parameter_size":"7.5B","quantization_level":"unknown"},"expires_at":"2026-11-26T12:19:57.087651+01:00","size_vram":6488609259,"context_length":8192,"runner":"llamacpp"}]}
@@ -0,0 +1,23 @@
{
"capabilities": [
"completion"
],
"details": {
"parent_model": "",
"format": "gguf",
"family": "hunyuan-dense",
"families": [
"hunyuan-dense"
],
"parameter_size": "7.5B",
"quantization_level": "Q4_K_M"
},
"parameters": "stop \"<|startoftext|>\"\nstop \"<|extra_4|>\"\nstop \"<|extra_0|>\"\nstop \"<|eos|>\"",
"template": "{{ if .System }}<|startoftext|>{{ .System }}<|extra_4|>{{ end }}{{ if .Prompt }}<|startoftext|>{{ .Prompt }}<|extra_0|>{{ end }}{{ .Response }}<|eos|>",
"model_info": {
"hunyuan-dense.block_count": 32,
"hunyuan-dense.context_length": 262144,
"hunyuan-dense.embedding_length": 4096,
"hunyuan-dense.rope.scaling.original_context_length": 262144
}
}
@@ -0,0 +1 @@
{"models":[{"name":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","model":"hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M","modified_at":"2026-11-26T09:09:25.155214479+01:00","size":5145532022,"digest":"262ac792aeb50fb8dfeae6feea465dfb10a0542dc9931c24de0a88d6b44fd1e7","details":{"parent_model":"","format":"gguf","family":"hunyuan-dense","families":["hunyuan-dense"],"parameter_size":"7.5B","quantization_level":"Q4_K_M","context_length":262144,"embedding_length":4096,"runner":"ggml"},"capabilities":["completion"]},{"name":"deepseek-ocr:3b","model":"deepseek-ocr:3b","modified_at":"2026-11-12T21:19:05.025742233+01:00","size":6687240356,"digest":"0e7b018b8a22373167ee79c9a852821235488cbd2a2a5a93495558627423278c","details":{"parent_model":"","format":"gguf","family":"deepseekocr","families":["deepseekocr"],"parameter_size":"3.3B","quantization_level":"F16","context_length":8192,"embedding_length":1280,"runner":"ggml"},"capabilities":["completion","vision"]},{"name":"maternion/LightOnOCR-3:0.8b","model":"maternion/LightOnOCR-3:0.8b","modified_at":"2026-11-11T22:53:43.933731782+01:00","size":1019190827,"digest":"605bb25fbd99bc71baf607a9fba03e3ce73575e4e90ea2378c3f24578a28694b","details":{"parent_model":"LightOnOCR-3-0.8B.Q8_0.gguf","format":"gguf","family":"qwen35","families":["qwen35"],"parameter_size":"752.39M","quantization_level":"Q8_0","context_length":262144,"embedding_length":1024,"runner":"llamacpp"},"capabilities":["completion","vision","tools","thinking"]},{"name":"maternion/LightOnOCR-3:4b","model":"maternion/LightOnOCR-3:4b","modified_at":"2026-11-11T22:51:28.04473841+01:00","size":3384374666,"digest":"a1d387a47620c3e343cf8978e8fd63f5f677d2fa97bd5d3e28f031cc69b59748","details":{"parent_model":"LightOnOCR-3-4B.i1-Q4_K_M.gguf","format":"gguf","family":"qwen35","families":["qwen35"],"parameter_size":"4.2B","quantization_level":"Q4_K_M","context_length":262144,"embedding_length":2560,"runner":"llamacpp"},"capabilities":["completion","vision","tools","thinking"]},{"name":"deepseek-ocr:latest","model":"deepseek-ocr:latest","modified_at":"2026-11-11T22:49:31.646969001+01:00","size":6687240356,"digest":"0e7b018b8a22373167ee79c9a852821235488cbd2a2a5a93495558627423278c","details":{"parent_model":"","format":"gguf","family":"deepseekocr","families":["deepseekocr"],"parameter_size":"3.3B","quantization_level":"F16","context_length":8192,"embedding_length":1280,"runner":"ggml"},"capabilities":["completion","vision"]},{"name":"phonon:40m-en","model":"phonon:40m-en","modified_at":"2026-11-02T10:58:39.491697329+01:00","size":131759489,"digest":"b74a4edf2fe2cdc766ec44783089563fbf6c09a163846d7d0e1e316e98390029","details":{"parent_model":"","format":"safetensors","family":"","families":null,"parameter_size":"","quantization_level":"","runner":"mlx"},"capabilities":["speech"]},{"name":"phonon:40m-de","model":"phonon:40m-de","modified_at":"2026-10-30T16:24:22.463655473+01:00","size":125613369,"digest":"024449ea0a54272832611a4c38a16c3b2c8e67752a2e1a2fd0c4350b3561a905","details":{"parent_model":"","format":"safetensors","family":"","families":null,"parameter_size":"","quantization_level":"","runner":"mlx"},"capabilities":["speech"]},{"name":"glm-ocr:latest","model":"glm-ocr:latest","modified_at":"2026-07-27T10:24:59.910954687+02:00","size":2219299168,"digest":"6effedd0dc8aec66ad86c94b8099395376e212f22c87a9d7147c422f7e447be4","details":{"parent_model":"","format":"gguf","family":"glmocr","families":["glmocr"],"parameter_size":"1.1B","quantization_level":"F16","context_length":131072,"embedding_length":1536,"runner":"ggml"},"capabilities":["completion","vision","tools"]}]}
@@ -0,0 +1 @@
{"version":"0.40.18"}
@@ -0,0 +1,28 @@
import Foundation
import Testing
@testable import SprachmittlerOllama
@Test func moduleLinks() {
#expect(SprachmittlerOllamaModule.moduleName == "SprachmittlerOllama")
}
/// T1.1: the recorded Ollama fixtures are bundled with the test target.
@Test func recordedFixturesAreBundled() throws {
let base = try #require(Bundle.module.resourceURL).appendingPathComponent("Fixtures")
let names = ["version.json", "tags.json", "capture-meta.json"]
for name in names {
let url = base.appendingPathComponent(name)
#expect(FileManager.default.fileExists(atPath: url.path), "missing fixture \(name)")
}
let chats = try FileManager.default.contentsOfDirectory(atPath: base.path)
.filter { $0.hasPrefix("chat-") && $0.hasSuffix(".ndjson") }
#expect(!chats.isEmpty)
}
@Test func recordedVersionIsDecodable() throws {
let base = try #require(Bundle.module.resourceURL).appendingPathComponent("Fixtures")
let data = try Data(contentsOf: base.appendingPathComponent("version.json"))
let object = try #require(try JSONSerialization.jsonObject(with: data) as? [String: Any])
let version = try #require(object["version"] as? String)
#expect(!version.isEmpty)
}
@@ -0,0 +1 @@
Größenänderungen und Straßen sind wichtig. Die Übersetzung muss Umlaute, ß und Zahlen wie 1,5 korrekt erhalten.
@@ -0,0 +1 @@
The quick brown fox jumps over the lazy dog. Please open https://example.com/docs?lang=en and set the limit to {{limit}} before you continue.
@@ -0,0 +1,3 @@
# Release notes
Open **Settings** and set `max_tokens` to {{limit}}. See [the docs](https://example.com/docs).
@@ -0,0 +1 @@
Hello {{name}}, your code is ${code}. Use %s or %d. Contact support@example.com or visit https://example.com/help?x=1.
@@ -0,0 +1,37 @@
import Foundation
import Testing
@testable import SprachmittlerText
@Test func moduleLinks() {
#expect(SprachmittlerTextModule.moduleName == "SprachmittlerText")
}
/// T0.1: the synthetic text fixtures are bundled and readable through Bundle.module.
@Test(arguments: [
"en-sample.txt", "de-sample.txt", "markdown-sample.md", "placeholders.txt",
])
func fixtureIsBundled(name: String) throws {
let url = try fixtureURL("Fixtures/\(name)")
let data = try Data(contentsOf: url)
#expect(!data.isEmpty)
}
@Test func englishFixtureHasAURLAndAPlaceholder() throws {
let text = try String(contentsOf: fixtureURL("Fixtures/en-sample.txt"), encoding: .utf8)
#expect(text.contains("https://example.com"))
#expect(text.contains("{{limit}}"))
}
@Test func germanFixtureHasUmlautsAndSharingS() throws {
let text = try String(contentsOf: fixtureURL("Fixtures/de-sample.txt"), encoding: .utf8)
#expect(text.contains("Größe"))
#expect(text.contains("Straßen"))
}
/// Resolves a path inside the copied `Fixtures` folder of this test target.
private func fixtureURL(_ relativePath: String) throws -> URL {
let base = try #require(Bundle.module.resourceURL)
let url = base.appendingPathComponent(relativePath)
try #require(FileManager.default.fileExists(atPath: url.path))
return url
}