Enable bundled OpenRouter configuration by default

This commit is contained in:
2026-11-03 15:30:47 +00:00
parent 2c50eca033
commit 6f57f2f30a
7 changed files with 155 additions and 9 deletions

View File

@@ -154,6 +154,15 @@ type engineOptions struct {
internal internalengine.Options
}
// WithBundledOpenRouter enables or disables the built-in OpenRouter underlay.
// It is enabled by default; when repeated, the last option wins.
func WithBundledOpenRouter(enabled bool) Option {
return optionFunc(func(options *engineOptions) error {
options.internal.SetBundledOpenRouter(enabled)
return nil
})
}
// WithLLMClient replaces the built-in model client used by [Engine.Run] and
// [Engine.RunPrepared].
//