mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix otel - handle vision images content
This commit is contained in:
parent
7f86dc859e
commit
4d7ff7c79b
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