fix otel - handle vision images content
This commit is contained in:
parent
259540900b
commit
1ff99bf9b5
@ -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…
Reference in New Issue
Block a user