Error using datasets with pipeline for text generation

The error occurs because the pipeline expects strings, not lists. Flatten the message dictionary to a string for each prompt before passing it to the dataset.

1 Like