From d5f48c7e23ae5930810e5e1bd9108c7d6053d52e Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 27 Oct 2025 17:38:24 -0700 Subject: [PATCH] get_metadata_variable_name_from_kwargs --- litellm/litellm_core_utils/core_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/litellm_core_utils/core_helpers.py b/litellm/litellm_core_utils/core_helpers.py index 298935459b6..8b9f53cec15 100644 --- a/litellm/litellm_core_utils/core_helpers.py +++ b/litellm/litellm_core_utils/core_helpers.py @@ -1,6 +1,6 @@ # What is this? ## Helper utilities -from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Union +from typing import TYPE_CHECKING, Any, Iterable, List, Literal, Optional, Union import httpx @@ -140,7 +140,7 @@ def add_missing_spend_metadata_to_litellm_metadata( def get_metadata_variable_name_from_kwargs( kwargs: dict, -) -> str: +) -> Literal["metadata", "litellm_metadata"]: """ Helper to return what the "metadata" field should be called in the request data