Skip to content

Commit ae12830

Browse files
committed
disable inline
1 parent 1d86b97 commit ae12830

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

eval_protocol/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
import warnings
1414
from typing import TYPE_CHECKING
1515

16+
import litellm
17+
18+
litellm.disable_add_transform_inline_image_block = True
19+
1620
warnings.filterwarnings("default", category=DeprecationWarning, module="eval_protocol")
1721

1822
# Eager imports for symbols that conflict with module names - ONLY when pytest is running.

eval_protocol/mcp/execution/policy.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
logger = logging.getLogger(__name__)
2424

25-
# Disable LiteLLM's document inlining feature that appends #transform=inline
26-
# to base64 image URLs, which breaks base64 decoding
27-
litellm.disable_add_transform_inline_image_block = True
2825

2926
class LiteLLMPolicy(LLMBasePolicy):
3027
"""

0 commit comments

Comments
 (0)