()
| 1160 | |
| 1161 | // 拒绝检测 + 自动重试(在 thinking 提取之后,只检测实际输出内容) |
| 1162 | const shouldRetry = () => isRefusal(fullText) && !(hasTools && hasToolCalls(fullText)); |
| 1163 | |
| 1164 | if (shouldRetry()) { |
| 1165 | for (let attempt = 0; attempt < MAX_REFUSAL_RETRIES; attempt++) { |
no test coverage detected