From d0f88772d3b8ed5fcf3bd56e10ce318c406eb2b2 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 3 Sep 2026 09:41:01 -0700 Subject: [PATCH] fix: update callers to use NewLLMRouterDefault 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. --- action/router.go | 4 ++-- cmd/starter/main.go | 2 +- k8s/git-commit.yaml | 2 +- k8s/worker-deployment.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/action/router.go b/action/router.go index ed9bcc6..8c99ebc 100644 --- a/action/router.go +++ b/action/router.go @@ -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) } diff --git a/cmd/starter/main.go b/cmd/starter/main.go index a342015..8f47413 100644 --- a/cmd/starter/main.go +++ b/cmd/starter/main.go @@ -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)) } diff --git a/k8s/git-commit.yaml b/k8s/git-commit.yaml index b09ea4a..0c430cf 100644 --- a/k8s/git-commit.yaml +++ b/k8s/git-commit.yaml @@ -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" diff --git a/k8s/worker-deployment.yaml b/k8s/worker-deployment.yaml index 5984fe6..2441f2f 100644 --- a/k8s/worker-deployment.yaml +++ b/k8s/worker-deployment.yaml @@ -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: