Compose runtime glossary files with native configuration

This commit is contained in:
2026-11-26 18:17:16 +00:00
parent b1cde637a2
commit a4b8fd0976
26 changed files with 292 additions and 92 deletions

View File

@@ -62,7 +62,7 @@ func TestLaterSectionsValidateWhileEarlierProposalUsesSharedBackend(t *testing.T
if err := os.WriteFile(filepath.Join(dir, "prompts.yml"), []byte(resources), 0600); err != nil {
t.Fatal(err)
}
loaded, _, err := appconfig.Load(context.Background(), ck.Input{Source: ck.File(path)}, "")
loaded, _, err := appconfig.Load(context.Background(), ck.Input{Source: ck.File(path)}, appconfig.Options{})
if err != nil {
t.Fatal(err)
}
@@ -102,7 +102,7 @@ func TestLaterSectionsValidateWhileEarlierProposalUsesSharedBackend(t *testing.T
wire := fmt.Sprintf(`{"choices":[{"message":{"content":%s}}]}`, content)
return &http.Response{StatusCode: 200, Header: make(http.Header), Body: io.NopCloser(strings.NewReader(wire))}, nil
})}
runtime, err := llm.NewRuntime(ctx, loaded, client)
runtime, err := llm.NewRuntime(ctx, loaded.Result, client)
if err != nil {
t.Fatal(err)
}