From d6b3d4f486994f4162a65f5922fdd298f25ceefa Mon Sep 17 00:00:00 2001 From: shrey kharbanda Date: Wed, 28 Oct 2026 16:03:52 -0700 Subject: [PATCH] fix(deepgram): match only list channel_index in Results frames, as before the match rewrite --- litellm/llms/deepgram/common_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/deepgram/common_utils.py b/litellm/llms/deepgram/common_utils.py index a4a413370f7..f7bcdafdfc4 100644 --- a/litellm/llms/deepgram/common_utils.py +++ b/litellm/llms/deepgram/common_utils.py @@ -140,7 +140,7 @@ def _channel_count(value: object) -> int | None: def _results_channel_count(frame: Mapping[str, object]) -> int | None: match frame.get("channel_index"): - case [object(), int() as channels]: + case list([object(), object() as channels]): return _channel_count(channels) case _: return None