Alikestocode commited on
Commit
d6f9002
·
1 Parent(s): 1fb66ec

Fix streaming loop break condition - only break when finished is True

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -708,7 +708,7 @@ def _generate_router_plan_streaming_internal(
708
 
709
  if finished:
710
  completion = chunk
711
- break
712
 
713
  # Final processing after streaming completes
714
  thread.join()
 
708
 
709
  if finished:
710
  completion = chunk
711
+ break
712
 
713
  # Final processing after streaming completes
714
  thread.join()