feat: full model catalog (settings enabledModels + custom providers) and provider credentials in spawned containers (keys passthrough + host auth.json bind)

This commit is contained in:
Raphael Westphal
2026-08-19 11:41:31 +02:00
parent d4af41e7dc
commit 5c71edfac4
5 changed files with 86 additions and 11 deletions
+9 -1
View File
@@ -68,9 +68,17 @@ func TestSpawnerStartHappyPath(t *testing.T) {
envLVMHAgent + "=1": true,
envLVMHRepo + "=group/project": true,
}
// provider key passthroughs are environment-dependent; ignore them here
passthrough := map[string]bool{
"OPENAI_API_KEY": true, "GEMINI_API_KEY": true,
"DEEPSEEK_KEY": true, "ANTHROPIC_API_KEY": true,
}
for _, e := range c.Env {
if name, _, ok := strings.Cut(e, "="); ok && passthrough[name] {
continue
}
if !wantEnv[e] {
t.Fatalf("unexpected env %q in %v", e, c.Env)
t.Fatalf("unexpected env %q", e)
}
delete(wantEnv, e)
}