{"record":{"id":"8605b924d7149e92","repo":"BerriAI/litellm","slug":"lar-1-routing-only-supports-async-routing-enable","errorCode":null,"errorMessage":"LAR-1 routing only supports async routing. Enable async_only_mode on the router or use acompletion.","messagePattern":"LAR-1 routing only supports async routing\\. Enable async_only_mode on the router or use acompletion\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/router_strategy/lar1_routing.py","lineNumber":177,"sourceCode":"    ) -> tuple[dict | None, bool]:\n        if not deployments:\n            return None, False\n\n        for deployment in deployments:\n            if not isinstance(deployment, dict):\n                continue\n            model_type = deployment.get(\"model_info\", {}).get(\"type\", \"\")\n            if model_type == target_type:\n                return deployment, True\n\n        for deployment in deployments:\n            if isinstance(deployment, dict):\n                return deployment, False\n\n        return None, False\n\n    def get_available_deployment(self, *args, **kwargs):\n        raise NotImplementedError(\n            \"LAR-1 routing only supports async routing. Enable async_only_mode on the router or use acompletion.\"\n        )\n","sourceCodeStart":159,"sourceCodeEnd":180,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/router_strategy/lar1_routing.py#L159-L180","documentation":"Raised by LAR1RoutingStrategy.get_available_deployment: the strategy only implements async deployment selection, and it was invoked on a sync routing path (router not in async_only_mode / non-acompletion call).","triggerScenarios":"Thrown at litellm/router_strategy/lar1_routing.py:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable async_only_mode on the router or call via acompletion."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}