From d9c051adfffe1cbee1df767105b918397e4d3ed3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 18 Jul 2024 21:55:53 -0700 Subject: [PATCH] add tags to metadata --- litellm/proxy/litellm_pre_call_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.py index e6bce53928f..1014a325ab3 100644 --- a/litellm/proxy/litellm_pre_call_utils.py +++ b/litellm/proxy/litellm_pre_call_utils.py @@ -188,6 +188,9 @@ async def add_litellm_data_to_request( CommonProxyErrors.not_premium_user.value, ) llm_router.enable_tag_filtering = False + else: + if "tags" in data: + data[_metadata_variable_name]["tags"] = data["tags"] ### TEAM-SPECIFIC PARAMS ### if user_api_key_dict.team_id is not None: