From 23f938cfc33d1ff90ec82a7873580f486ada5e13 Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Mon, 11 Nov 2024 19:07:37 -0800 Subject: [PATCH] convert_messages drops tool_call_id field (and other fields) #1164 --- instructor/multimodal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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