def _generate_message(content: str, images: list[str] | None) -> dict:
        """Generate a message for the Ollama chat API.

        Args:
            content (str): Text content of the message
            images (list[str] | None): List of base64 encoded images to include

        Returns:
            dict: Formatted message dictionary with role, content and optional images
        """
        message: dict[str, str | list[str]] = {"role": "user", "content": content}
        if images:
            message["images"] = images
        return message
Generate a message for the Ollama chat API.

        Args:
            content (str): Text content of the message
            images (list[str] | None): List of base64 encoded images to include

        Returns:
            dict: Formatted message dictionary with role, content and optional images
        
src/anomalib/models/image/vlm_ad/backends/ollama.py