mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
chore(compiler): Enable strict property access TS compiler flag. (#6255)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -367,10 +367,10 @@ Please analyze the conversation history to determine the possibility that the co
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof result.confidence === 'number') {
|
||||
if (result.confidence > 0.9) {
|
||||
if (typeof result.reasoning === 'string' && result.reasoning) {
|
||||
console.warn(result.reasoning);
|
||||
if (typeof result['confidence'] === 'number') {
|
||||
if (result['confidence'] > 0.9) {
|
||||
if (typeof result['reasoning'] === 'string' && result['reasoning']) {
|
||||
console.warn(result['reasoning']);
|
||||
}
|
||||
logLoopDetected(
|
||||
this.config,
|
||||
@@ -381,7 +381,7 @@ Please analyze the conversation history to determine the possibility that the co
|
||||
this.llmCheckInterval = Math.round(
|
||||
MIN_LLM_CHECK_INTERVAL +
|
||||
(MAX_LLM_CHECK_INTERVAL - MIN_LLM_CHECK_INTERVAL) *
|
||||
(1 - result.confidence),
|
||||
(1 - result['confidence']),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user