My gpt4 running python code doesn't output images anymore, but the code runs fine outputting text

I just had a problem with my GPT4 today, I used to be able to run the python code to output the image results, but today I can’t output the image, the code is fine!


I have the same problem. It works in playground and it worked until last week with api access.

1 Like

It is a bug in the python sandbox.

is not set after code execution.

Solution: Change OpenAI-Beta: assistants=v1 to
OpenAI-Beta: assistants=v2