Document the bundled OpenRouter configuration

This commit is contained in:
2026-11-03 15:39:04 +00:00
parent 43f55edb98
commit 2b3d165ce2
12 changed files with 114 additions and 20 deletions

View File

@@ -98,7 +98,7 @@ func run() (summary, error) {
engine, err := promptkit.NewEngine(promptkit.Config{
Sources: promptkit.ConfigurationSources{Underlays: []configkit.Underlay{{Inputs: inputs}}},
HTTPClient: &http.Client{Transport: transport},
}, promptkit.WithSchemaFS(assets, "schemas"))
}, promptkit.WithBundledOpenRouter(false), promptkit.WithSchemaFS(assets, "schemas")) // Keep the example's configuration self-contained.
if err != nil {
return summary{}, err
}

View File

@@ -63,7 +63,7 @@ func run(ctx context.Context, exampleDir string, out io.Writer) error {
{Inputs: []configkit.Input{support, review}},
{Inputs: []configkit.Input{override}},
},
}})
}}, promptkit.WithBundledOpenRouter(false)) // Keep this example's inventory caller-owned.
if err != nil {
return err
}

View File

@@ -54,7 +54,7 @@ func run(ctx context.Context, exampleDir string, out io.Writer) error {
{ID: "offline-example", Endpoint: &endpoint, Model: &model},
})}}}},
Main: &configkit.Input{Source: configkit.File(filepath.Join(exampleDir, "prompt.yaml"))},
}}, promptkit.WithLLMClient(deterministicClient{}))
}}, promptkit.WithBundledOpenRouter(false), promptkit.WithLLMClient(deterministicClient{})) // Use only this example's offline configuration.
if err != nil {
return err
}