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)
}
+1 -1
View File
@@ -218,7 +218,7 @@ func runRoutingWorkflow(c client.Client, routeMsg, specFile string, isCron, dryR
logging.Fatal("failed to load knowledge base", logging.Err(err))
}
router, err := routing.NewLLMRouter(kb)
router, err := routing.NewLLMRouterDefault(kb)
if err != nil {
logging.Fatal("failed to create LLM router", logging.Err(err))
}
+1 -1
View File
@@ -9,6 +9,6 @@ metadata:
app.kubernetes.io/name: poimen
app.kubernetes.io/component: orchestrator
data:
GIT_COMMIT: "ca0a9376" # Updated automatically by CI/CD
GIT_COMMIT: "8e2c0a7a" # Updated automatically by CI/CD
GIT_BRANCH: "main"
DEPLOYMENT_DATE: "2026-09-03"
+1 -1
View File
@@ -13,7 +13,7 @@ spec:
labels:
app: poimen-worker
annotations:
git-commit: "ca0a9376" # ✅ Updated on each push, triggers rolling restart
git-commit: "8e2c0a7a" # ✅ Updated on each push, triggers rolling restart
deployment-date: "2026-09-03"
spec:
containers: