feat: Modell der Coder/Judge-Schleife per PI_CODER_MODEL wählbar
PI_CODER_MODEL=<provider>/<id> setzt das Modell für beide Rollen; ohne Variable bleibt es bei llama-cpp-single/coding_model. Die Bereitschafts- prüfung nutzt baseUrl des Modells statt fest Port 8001. Neuer Provider strata (lokaler Strata-Server, 127.0.0.1:9090) in models.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0cb637783c
commit
a608f1dda8
2 changed files with 120 additions and 42 deletions
|
|
@ -15,6 +15,13 @@ test("models.json: Provider llama-cpp-single hat genau ein Modell coding_model a
|
|||
assert.deepEqual(p.models.map((m) => m.id), ["coding_model"]);
|
||||
});
|
||||
|
||||
test("models.json: Provider strata zeigt auf den lokalen Strata-Server (:9090)", () => {
|
||||
const p = models.providers["strata"];
|
||||
assert.ok(p, "Provider strata fehlt");
|
||||
assert.match(p.baseUrl, /^http:\/\/127\.0\.0\.1:9090\/v1$/);
|
||||
assert.deepEqual(p.models.map((m) => m.id), ["qwen3.8-flash-next-iq3_s"]);
|
||||
});
|
||||
|
||||
test("models.json: tote Dual-/Alt-Provider sind entfernt", () => {
|
||||
for (const dead of ["llama-cpp", "llama-cpp-coder", "llama-cpp-judge"]) {
|
||||
assert.ok(!(dead in models.providers), `Toter Provider '${dead}' noch vorhanden`);
|
||||
|
|
|
|||
|
|
@ -61,3 +61,14 @@ test("LICENCE.md: deterministisch in der Doku-Phase, nur wenn nicht vorhanden, p
|
|||
assert.match(extSource, /git config user\.name/);
|
||||
assert.match(extSource, /new Date\(\)\.getFullYear\(\)/);
|
||||
});
|
||||
|
||||
test("Single-Modell: Standard bleibt llama-cpp-single/coding_model, PI_CODER_MODEL überschreibt", () => {
|
||||
assert.match(extSource, /DEFAULT_SINGLE_MODEL = "llama-cpp-single\/coding_model"/);
|
||||
assert.match(extSource, /process\.env\.PI_CODER_MODEL \|\| DEFAULT_SINGLE_MODEL/);
|
||||
});
|
||||
|
||||
test("Bereitschaftsprüfung: Endpunkt aus models.json statt fest Port 8001", () => {
|
||||
assert.doesNotMatch(extSource, /waitUntilModelReady\(pi, ctx, 8001/);
|
||||
assert.doesNotMatch(extSource, /localhost:\$\{port\}/);
|
||||
assert.match(extSource, /function singleEndpoint\b/);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue