Use this prompt generte country name in string from location code in python and hardcode all known countries.
Use "code" assistant. It consistently errors out.
Works with gpt4o. I think it would also be good if for some reason it cannot work no matter what, do not clear the already generated tokens. Right now the behaviour is if the backend model errors out all tokens it has so far generated are gone. It might be that they are still usable even if incomplete.
Expected finished results without error.