Error in StreamlitCallbackHandler.on_llm_new_token callback: maximum recursion depth exceeded

Hi @rasmuswissmann

Thanks for the question. In regards to the maximum recursion depth exceeded it may have been caused by an unintentional recursion in the code. There are a few forum post on resolving the issue that you can look into:

It may also be helpful to experiment with the max_thought_containers parameter to see if fewer value would still cause the error.