mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix otel - handle vision images content
This commit is contained in:
parent
259540900b
commit
1ff99bf9b5
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,8 @@ class OpenTelemetry(CustomLogger):
|
|||
)
|
||||
|
||||
if prompt.get("content"):
|
||||
if not isinstance(prompt.get("content"), str):
|
||||
prompt["content"] = str(prompt.get("content"))
|
||||
span.set_attribute(
|
||||
f"{SpanAttributes.LLM_PROMPTS}.{idx}.content",
|
||||
prompt.get("content"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue