mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(otel): put the mutable-ok suppression on the dict construction line the type-discipline gate reports
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
d0dfafbf89
commit
de3d6b999b
1 changed files with 1 additions and 3 deletions
|
|
@ -84,9 +84,7 @@ class LangfuseMapper:
|
|||
# JSON-payload attributes: each builder returns the serialized blob or None.
|
||||
_BLOB_ATTRS: dict[str, Callable[[LLMCallSpanData], AttrValue | None]] = {
|
||||
LANGFUSE_OBSERVATION_METADATA: lambda d: (
|
||||
safe_dumps( # mutable-ok: safe_dumps only serializes real dicts
|
||||
dict(d.request_metadata)
|
||||
)
|
||||
safe_dumps(dict(d.request_metadata)) # mutable-ok: safe_dumps only serializes real dicts
|
||||
if d.request_metadata
|
||||
else None
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue