mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-10 08:28:25 +00:00
fix(deepgram): match only list channel_index in Results frames, as before the match rewrite
This commit is contained in:
parent
65c272337b
commit
d6b3d4f486
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue