feat: OpenAI-kompatibler Modell-Client für strata

Backend in config.toml wählbar (ollama oder openai), Standard-URL für
strata im LAN (192.168.12.4:8082). Nachrichten werden ins OpenAI-Format
umgeschrieben, Tool-Antworten bekommen die passende tool_call_id. Test
für die Umwandlung grün (42 Unit-Tests). Verbindung zu strata noch nicht
möglich: alle drei Adressen lehnen ab.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 21:06:29 +01:00
parent 49e543360b
commit f35b68ae1f
4 changed files with 232 additions and 5 deletions

View File

@ -73,7 +73,8 @@ async fn start_batch(
let jobs = runner::plan(&models, &selected, repeats);
let run_cfg = RunConfig {
runtime: cfg.container_runtime.clone(),
endpoint_url: cfg.ollama_url.clone(),
backend: cfg.backend.clone(),
endpoint_url: cfg.endpoint_url(),
data_dir: paths.0.data_dir.clone(),
limits: cfg.sandbox_limits(),
};