Timeout for AI Generate Text
# 🤝help
i
I'm plagued in GPT 4 by "Execution time of 60 seconds exhausted while processing card card:ai-generate / node:XXXX / flow:YYYYY. This card will be re-executed when the conversation is resumed." It's technologically unbearable... How can this situation be managed?
a
Hey @icy-battery-22041, sounds like it's a pretty hefty ai-generate card that's being run. There is a 60 second time out for processing AI cards in Botpress. It might be circumventable if the keep-alive add-on is enabled for the bot, but I'm not sure. A better solution might be to try breaking up your AI-generate card into multiple AI-generate cards, each doing a part of the overall task. Then, each step of the process has up to 60 seconds rather than the whole process.
i
Thanks for the reply, Gordy. In fact, the prompts I usually process require a lot of text to answer. In the past I had had this type of problem which I solved by combining a card query with AI, but now it has recurred when this is not possible. In relation to your kind instructions: 1) "It might be workable if the keep-alive add-on is enabled for the bot, but I'm not sure.": unfortunately my lack of technical knowledge doesn't allow me to understand it... 2) "try to divide the card generated by the AI into multiple cards generated by the AI": I thank you very much because it seems to me to be an effective solution which I will try... In any case, it doesn't seem efficient to me: but why is it necessary a 60 second timeout? Wouldn't it be useful to raise the limit?