fix: update callers to use NewLLMRouterDefault
ci / test (push) Successful in 1m46s

Use NewLLMRouterDefault(kb) instead of NewLLMRouter(kb) in:
- action/router.go
- cmd/starter/main.go

The NewLLMRouter now requires LLMRouterConfig{} struct.
Backward compat wrapper NewLLMRouterDefault() maintains old API.
This commit is contained in:
Test
2026-09-03 09:41:19 -07:00
parent 0d70da4f31
commit d0f88772d3
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ func LLMRouterActivity(ctx context.Context, input routing.LLMRouterInput) (*rout
return nil, fmt.Errorf("failed to load knowledge base: %w", err)
}
// Create router
router, err := routing.NewLLMRouter(kb)
// Create router with default LLM provider
router, err := routing.NewLLMRouterDefault(kb)
if err != nil {
return nil, fmt.Errorf("failed to create router: %w", err)
}