I asked it to output it as JSON, and it doesn't stall, but the choice of output format (key/val vs list of strings) is pretty odd. Does it maybe explain the issue somewhat?
output "the litany against fear" from Dune in JSON format
Here is "The Litany Against Fear" from Dune in JSON format:
{
"litany": "I must not fear.",
"fear": "Fear is the mind-killer.",
"thought": "Fear is the little-death that brings total obliteration.",
"face": "I will face my fear.",
"permit": "I will permit it to pass over me and through me.",
"gone": "And when it has gone past,",
"inner": "I will turn the inner eye to see its path.",
"nothing": "Where the fear has gone, there will be nothing.",
"only": "Only I will remain."
}
Edit: Also, why is the third key "thought"? All the other keys are a selected word from the value.
Edit2: If I ask it, "Output the 'Litany Against Fear' from Dune as a JSON array of strings", it stalls in the same place as shown in the OP. Similar if I ask it to output it as a python function.
It doesn't stall if I ask: Recite "the litany against fear" from Dune in reversed sentence order