Skip to content

Fix incorrect Threat Confidence for safe messages#186

Open
shrutig-blip wants to merge 1 commit into
Mrinalray:mainfrom
shrutig-blip:fix-threat-confidence
Open

Fix incorrect Threat Confidence for safe messages#186
shrutig-blip wants to merge 1 commit into
Mrinalray:mainfrom
shrutig-blip:fix-threat-confidence

Conversation

@shrutig-blip

Copy link
Copy Markdown

Summary

This PR fixes the incorrect Threat Confidence displayed for safe messages.

fix issue: #183

Changes

  • Added a separate threatConfidence value in the frontend.
  • Display 0% Threat Confidence when the classification is safe.
  • Continue displaying the reported confidence for suspicious and danger classifications.

Testing

Tested with:

  • ✅ "hi"
  • ✅ "hello"
  • ✅ "How are you?"
  • ✅ Fake job template
  • ✅ OTP fraud template
  • ✅ Phishing message

The issue where harmless messages displayed 100% Threat Confidence has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant