diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index 38a785f51d9..ab9e7db343a 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -91,7 +91,7 @@ def _get_content_as_str(content: Union[str, list]) -> str: if isinstance(content, str): return content if isinstance(content, list): - return convert_content_list_to_str({"content": content}) + return convert_content_list_to_str({"role": "user", "content": content}) return str(content)