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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
get_metadata_variable_name_from_kwargs
Ishaan Jafferd5f48c7e23ae
diff --git a/litellm/litellm_core_utils/core_helpers.py b/litellm/litellm_core_utils/core_helpers.pyindex 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, Unionimport 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