From d4f1043be1bf4aec1c5378713ff5e4e36b6fc7c8 Mon Sep 17 00:00:00 2001 From: tcpsyn Date: Sun, 5 Apr 2026 03:02:45 -0600 Subject: [PATCH] Add feature flag for slim caller path (haiku-4.5) --- backend/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/main.py b/backend/main.py index 0f4e010..ebba467 100644 --- a/backend/main.py +++ b/backend/main.py @@ -6831,6 +6831,7 @@ def _assess_call_quality( class Session: def __init__(self): self.id = str(uuid.uuid4())[:8] + self.use_slim_caller_path = os.environ.get("CALLER_REDESIGN", "0") == "1" self.current_caller_key: str = None self.conversation: list[dict] = [] self.caller_backgrounds: dict[str, CallerBackground | str] = {} # Generated backgrounds @@ -6918,6 +6919,8 @@ class Session: def get_caller_model(self, caller_key: str) -> str | None: """Get the assigned model for a caller, or assign one based on strategy. Returns None to use default category routing.""" + if self.use_slim_caller_path: + return "anthropic/claude-haiku-4.5" if self.caller_model_strategy == "single": return None # use default category_models["caller_dialog"]