mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(logging): retain lazy fallback tag extraction
This commit is contained in:
parent
55ca9ce86b
commit
601b38462e
1 changed files with 3 additions and 3 deletions
|
|
@ -7519,9 +7519,9 @@ class StandardLoggingPayloadSetup:
|
|||
)
|
||||
request_tags: Final = next(
|
||||
(
|
||||
cast(list[str], tags) # cast-ok: tags are caller-provided
|
||||
for tags in (metadata.get("tags"), litellm_metadata.get("tags"))
|
||||
if isinstance(tags, list) and tags
|
||||
cast(list[str], tags) # cast-ok: preserve existing caller-provided list elements
|
||||
for tag_metadata in (metadata, litellm_metadata)
|
||||
if isinstance(tags := tag_metadata.get("tags"), list) and tags
|
||||
),
|
||||
(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue