So far I needed to limit the media items to respect the token limit of ChatGPT.
Now the complete media items can be used, because the movie list is splitted into chunks of a specified size and...
Yes, it was initially due to the token limitation, but then I changed it with manual limitation of media items. In the end a flexible solution, that counts the needed token and splits the query...
Looks good. I'm not sure if its a limitation of the OpenAI API but your current code will run into rate limiting and performance issues because you perform a new web request for every individual...