Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

log correct file name on langfuse

Ishaan Jaff1b3bc3209009
diff --git a/litellm/utils.py b/litellm/utils.py
index b6fa1d51546..241f70abd9c 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -553,7 +553,8 @@ def function_setup(
or call_type == CallTypes.transcription.value
):
_file_name: BinaryIO = args[1] if len(args) > 1 else kwargs["file"]
- messages = "audio_file"
+ file_name = getattr(_file_name, "name", "audio_file")
+ messages = file_name
elif (
call_type == CallTypes.aspeech.value or call_type == CallTypes.speech.value
):