mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
skip loop check if it is currently inside a loop (#6022)
This commit is contained in:
@@ -179,7 +179,7 @@ export class LoopDetectionService {
|
||||
const wasInCodeBlock = this.inCodeBlock;
|
||||
this.inCodeBlock =
|
||||
numFences % 2 === 0 ? this.inCodeBlock : !this.inCodeBlock;
|
||||
if (wasInCodeBlock) {
|
||||
if (wasInCodeBlock || this.inCodeBlock) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user