Skip to content

Commit bbab566

Browse files
committed
fix: litellm test errors
1 parent 8cde746 commit bbab566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/litellm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _map_item(item: "Dict[str, Any]") -> "Dict[str, Any]":
8484
if item.get("type") == "image_url":
8585
image_url = item.get("image_url") or {}
8686
url = image_url.get("url", "")
87-
if url.startswith("data:"):
87+
if url.startswith("data:") and ";base64," in url:
8888
try:
8989
mime_type, content = parse_data_uri(url)
9090
return {

0 commit comments

Comments
 (0)