Are Assistant Parameters Ephemeral?

I created an Assistant within playground where I uploaded a JSON data file, and entered the assistant instructions. I then copied the assistant_id as displayed from the playground, and then wrote python code calling the assistant with the ID, and a prompt.
Question: Do I need to repeat the instructions and re-attach the data files, whenever I call it via the api, or can I just enter the prompt, along with the assistant id?

Also does GPT-3.5 support file attachments, or do I need to use GPT-4? I understand that I can pre-process the file within my Python code if I used GPT-3.5 as an option.
Thanks

1 Like

When using the OpenAI API, you don’t necessary need to repeat the instructions or re-attach the data files every time you make an API call. The instructions and data are associated with the assistant_id, so you only need to provide the prompt along with the assistant_id in your API calls.

1 Like

Thank you very @michael.simpson555. That is what I assumed but I wasn’t sure. I have seen examples, where the “instructions” are resent during every prompt.

1 Like