mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Log the 2 types of loop detection (#4193)
This commit is contained in:
@@ -101,7 +101,7 @@ export class GeminiClient {
|
||||
*/
|
||||
private readonly COMPRESSION_PRESERVE_THRESHOLD = 0.3;
|
||||
|
||||
private readonly loopDetector = new LoopDetectionService();
|
||||
private readonly loopDetector: LoopDetectionService;
|
||||
private lastPromptId?: string;
|
||||
|
||||
constructor(private config: Config) {
|
||||
@@ -110,6 +110,7 @@ export class GeminiClient {
|
||||
}
|
||||
|
||||
this.embeddingModel = config.getEmbeddingModel();
|
||||
this.loopDetector = new LoopDetectionService(config);
|
||||
}
|
||||
|
||||
async initialize(contentGeneratorConfig: ContentGeneratorConfig) {
|
||||
|
||||
Reference in New Issue
Block a user