Hello, im currently trying to make chatgpt to classify some texts based on my input. Im currently doing for loops passing it my input plus the text and making it classify.
This is quite slow and expensive since the instructions are long and the text is short
Is there anyway of passing them just one time or less times my instructions and make the API work on all or more than one text at the same time?
I got a column of texts to classify, im looping on them.
You can also send your requests to the Batch API and retrieve one complete set of results within one day which will save you 50% of the costs.
Then you could check if βbatchingβ is an option for you. (I know the naming is confusing). The other option when performing standard API calls is parallelization.
There should also be some examples in the OpenAI cookbook to get you started.