Fix traces table filtering for string arguments

This commit is contained in:
Andras Schmelczer 2022-08-11 16:49:19 +02:00
parent 83e111f088
commit 49968691cc
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
2 changed files with 10 additions and 3 deletions

View file

@ -88,7 +88,9 @@ class Trace(Generic[T], HashableBaseModel):
}
),
**{
k: pformat(v, indent=2, compact=True)
k: v
if (isinstance(v, float) or isinstance(v, int))
else pformat(v, indent=2, compact=True)
for k, v in self.logged_values.items()
},
"models_flat": self.models_flat,