English
technician1 commited on
Commit
f5823c6
·
verified ·
1 Parent(s): aa63c12

Upload ChatIPC.cpp

Browse files
Files changed (1) hide show
  1. ChatIPC.cpp +1 -1
ChatIPC.cpp CHANGED
@@ -1411,7 +1411,7 @@ static vector<string> construct_response(KnowledgeBase &kb,
1411
  );
1412
 
1413
  if (chosen.empty()) break;
1414
- if (would_create_2_cycle(chosen)) break;
1415
 
1416
  resp.push_back(chosen);
1417
  StrPtr chosen_ptr = kb.interner.intern(chosen);
 
1411
  );
1412
 
1413
  if (chosen.empty()) break;
1414
+ if (!allow_path_loops && would_create_2_cycle(chosen)) break;
1415
 
1416
  resp.push_back(chosen);
1417
  StrPtr chosen_ptr = kb.interner.intern(chosen);