Hi All,
I’m probably just doing something wrong, but I’m trying to save and display a png image generated from the assistant api. I use retrieve_content which gives me the image content as a string. When I try to encode to bytes I get UnicodeEncodeError: ‘latin-1’ codec can’t encode character ‘\ufffd’ in position 0: ordinal not in range(256) … I can see the header says PNG and it looks ok as far as I can tell. Just some unicode errors.