Skip to content

Commit acbba73

Browse files
Merge branch 'webb/litellm-truncation' into webb/revert-anthropic-transformation
2 parents e4ff4e7 + d4b55b0 commit acbba73

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

sentry_sdk/integrations/pydantic_ai/spans/ai_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
get_is_streaming,
1919
)
2020
from .utils import (
21-
_serialize_image_url_item,
2221
_set_usage_data,
2322
)
2423

@@ -156,8 +155,6 @@ def _set_input_messages(span: "sentry_sdk.tracing.Span", messages: "Any") -> Non
156155
for item in part.content:
157156
if isinstance(item, str):
158157
content.append({"type": "text", "text": item})
159-
elif ImageUrl and isinstance(item, ImageUrl):
160-
content.append(_serialize_image_url_item(item))
161158
else:
162159
content.append(safe_serialize(item))
163160
else:

sentry_sdk/integrations/pydantic_ai/spans/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sentry_sdk
44
from sentry_sdk.consts import SPANDATA
55

6+
67
from typing import TYPE_CHECKING
78

89
if TYPE_CHECKING:

0 commit comments

Comments
 (0)