diff --git a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/record_scope.py b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/record_scope.py index 5cc8a93192f..4ed2dcf83a3 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/record_scope.py +++ b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/record_scope.py @@ -85,8 +85,7 @@ class RecordScope: return False case "per_session": return session_id is None or self._claim_session(json.dumps((*caller, session_id, input_type))) - case _: - return assert_never(self._scope) + return assert_never(self._scope) def _claim_session(self, key: str) -> bool: if self._recorded_sessions.get_cache(key) is True: