From a82dc87519f27c431abaf37152e68cf2b1dc9006 Mon Sep 17 00:00:00 2001 From: Charan Rathore Date: Mon, 28 Sep 2026 10:06:25 +0530 Subject: [PATCH] fix: type audio health-check file as binary handle --- litellm/litellm_core_utils/audio_utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/litellm_core_utils/audio_utils/utils.py b/litellm/litellm_core_utils/audio_utils/utils.py index dab3e48f91a..74cdb2cefa6 100644 --- a/litellm/litellm_core_utils/audio_utils/utils.py +++ b/litellm/litellm_core_utils/audio_utils/utils.py @@ -5,7 +5,7 @@ Utils used for litellm.transcription() and litellm.atranscription() import hashlib import os from dataclasses import dataclass -from typing import Final +from typing import BinaryIO, Final from litellm.types.files import ( AUDIO_FILE_TYPES, @@ -244,7 +244,7 @@ def get_audio_file_content_hash(file_obj: FileTypes) -> str: return hash_object.hexdigest() -def get_audio_file_for_health_check() -> FileTypes: +def get_audio_file_for_health_check() -> BinaryIO: """ Get an audio file for health check