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:
+2
-2
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user