from openai import OpenAI
client = OpenAI()
image_data = client.files.content(“file-abc123”)
image_data_bytes = image_data.read()
with open(“./my-image.png”, “wb”) as file:
file.write(image_data_bytes). – The charts generated by the code interpreter display garbled text if the title is in Chinese.
1 Like