lower depth

This commit is contained in:
vbarda
2025-04-14 14:12:40 -04:00
parent b526fe0a4b
commit 07ca03ff15
+2 -2
View File
@@ -160,8 +160,8 @@ class StreamMessagesHandler(BaseCallbackHandler, _StreamingCallbackHandler):
if response is None:
return
# Cap recursion depth at 5
if depth >= 5:
# Cap recursion depth at 3
if depth >= 3:
return
if isinstance(response, BaseMessage):