mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 08:31:14 -07:00
Disallow unsafe type assertions (#18688)
This commit is contained in:
committed by
GitHub
parent
bce1caefd0
commit
fd65416a2f
@@ -449,6 +449,7 @@ export class LoopDetectionService {
|
||||
return false;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||
const flashConfidence = flashResult[
|
||||
'unproductive_state_confidence'
|
||||
] as number;
|
||||
@@ -490,7 +491,8 @@ export class LoopDetectionService {
|
||||
);
|
||||
|
||||
const mainModelConfidence = mainModelResult
|
||||
? (mainModelResult['unproductive_state_confidence'] as number)
|
||||
? // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||
(mainModelResult['unproductive_state_confidence'] as number)
|
||||
: 0;
|
||||
|
||||
logLlmLoopCheck(
|
||||
|
||||
Reference in New Issue
Block a user