I’ve been working with getting familiar with how chatgpt plugins work for the last few days, and using this woocommerce plugin as a way to learn and experiment. I’ve managed to set it up and it retrieves data although I still have to be very specific in how I formulate my inputs, otherwise I get a ResponseTooLargeError.
In general it seems that the ResponseTooLargeError occurs when I use a more diverse input. For example, if I ask “I need to purchase coffee” it generally understands 8/10 times. But if I say “I’m in the need to stock up on some basic products, coffee etc.” I almost immediately get a ResponseTooLargeError.
When I look at the Request made to the plugin in these cases the response is either completely empty or has a limit set such as:
{
"limit": 5
}
To add to the possible complexity this is a non-english woocommerce store serving customers in primary language swedish and secondary language finnish.
Background information about the store is that it is based in Finland, it is an online grocerystore with home delivery, and it has about 3000 active items in the shop. Just like basic grocery.
My biggest issue at the moment is the need to be super specific to get any respons. The language issue also seem to confuse GPT a bit, as it can only find for example one coffee related product when I ask in english but when I ask in swedish it gives me plenty.
The ResponseTooLargeError is a symptom of a wider confusion on GPTs side than an actual problem with the response being too large. It just doesn’t know what it is supposed to do so it just goes crazy and searches anything and everything and adds random limits in its requests.
Work in progress this one and I’ll update with current code stack if someone else is looking to build something similar or is able to spot some things that don’t look right.