diff --git a/instructor/multimodal.py b/instructor/multimodal.py index 524f2eced..2d2858412 100644 --- a/instructor/multimodal.py +++ b/instructor/multimodal.py @@ -356,7 +356,7 @@ def is_image_params(x: Any) -> bool: cast(ImageParams, content) ) if isinstance(content, str): - converted_messages.append({"role": role, "content": content}) # type: ignore + converted_messages.append(message) # type: ignore else: converted_content = convert_contents(content, mode) converted_messages.append({"role": role, "content": converted_content}) # type: ignore