Upload ChatIPC.cpp
Browse files- 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);
|