Skip to content

Discard suggestion if confidence score is low

Andras Herczeg requested to merge 282-discard-low-score-response into main

What does this merge request do and why?

With the lates update we receive a confidence score with each suggestion from Code Gecko. If this score is too low ( <= -10 at the moment), we can assume that the suggestion is incorrect and discard it instead of returning it to the user.

This MR clears the suggestion.text field if the score is below -10.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Closes #282 (closed)

Edited by Andras Herczeg

Merge request reports