mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: test
This commit is contained in:
parent
c918e18852
commit
15ecc363d8
1 changed files with 4 additions and 2 deletions
|
|
@ -137,9 +137,11 @@ def _get_tags_from_request_kwargs(
|
|||
return []
|
||||
if metadata_variable_name in request_kwargs:
|
||||
metadata = request_kwargs[metadata_variable_name] or {}
|
||||
return metadata.get("tags", [])
|
||||
tags = metadata.get("tags", [])
|
||||
return tags if tags is not None else []
|
||||
elif "litellm_params" in request_kwargs:
|
||||
litellm_params = request_kwargs["litellm_params"] or {}
|
||||
_metadata = litellm_params.get(metadata_variable_name, {}) or {}
|
||||
return _metadata.get("tags", [])
|
||||
tags = _metadata.get("tags", [])
|
||||
return tags if tags is not None else []
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue