I am facing a timeout issue when trying to implement this basic setup to display one message at a time. For reference I have been able to produce the chat gpt response no problem - its only the shift and loop that seems to be causing the timeout
This is a very odd use case. Trying to chunk out an ai reply using a shift I don't know if that would ever work consistently. Instead of doing that why not just create a custom assistant in OpenAI that can only reply using one liners and given some variable only than should it reply using more lines. Gpt4o is good at that there is even a built in AI to help you define your rules for the assistant. Would be more preformat also.
The reason the above doesn’t quite work is because whilst chat gpt outputs by breaking up sentences, typebot still sends them all in one message. This is the reason why I assume the chunking was recommended. I don’t always want one liners. I want long messages to be split and sent separately