From 417684db53ce6338ffcf9ebc07eeda0578c5330b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 14 Mar 2026 12:46:28 -0700 Subject: [PATCH] fix(responses/main.py): ensure litellm metadata custom cost works --- litellm/responses/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/responses/main.py b/litellm/responses/main.py index 6f7e38dc8b8..b83cfb6e3cc 100644 --- a/litellm/responses/main.py +++ b/litellm/responses/main.py @@ -751,6 +751,7 @@ def responses( "aresponses": _is_async, "litellm_call_id": litellm_call_id, "metadata": metadata_for_callbacks, + "litellm_metadata": kwargs.get("litellm_metadata", {}), }, custom_llm_provider=custom_llm_provider, )