Please tell me what is your best method to upload files and use them for a specific chat

Hello:
We are using chatgpt by using this method:
curl https://api.openai.com/v1/chat/completions \ -H “Content-Type: application/json”
-H “Authorization: Bearer $OPENAI_API_KEY” \ -d ‘{
“model”: “gpt-3.5-turbo”, “messages”: [
{ “role”: “assistant”,
“content”: “my content” },
{ “role”: “user”,
“content”: “my question” }
] }’
However we don’t like to upload the content on every request.
I see in the documentation these features:
https://platform.openai.com/docs/api-reference/files/create
https://platform.openai.com/docs/api-reference/assistants/createAssistant
As far as I see I am able to upload files (100GB) and then reuse them on the chat request by creating assistants and assign files to the assistant (20 max).
The FILE feature seems to be legacy but ASSISTANT feature seems to be BETA.
Please tell me what is your best method to upload files and use them for an specific chat. I need more than one chat type, so different content will be used on every chat type.

Thanks

3 Likes