Download generated file from response

I need help please - I have asked the openai.chat.completions api to draft an email and allow me to download the email in a .eml format…

The response works, but there is an empty link to download the file, how do i download the file that is generated in the response?

when using chat.openai .com i can download the file when using gpt-4, but my api has no files listed.

Any ideas?

The AI cannot produce binary files for you, it is trained on text.

If the AI gave you some download link, it is a hallucination. The AI is just writing plausible text that looks like what should appear as a response.

Chat Completions doesn’t have any “download”. Nor is there any file storage.


I wasn’t able to fool the AI of gpt-4-turbo-preview

However gpt-3.5-turbo-0125 happily made up something that is just the plain text you see.

image