review classifier: truncate an over-long reason instead of dropping the verdict
An answer whose reason ran past 500 characters was rejected whole, so the verdict was lost and the one error row turned the review into no_verdict. The reason is cut to the cap, ending in an ellipsis; verdict and certainty are kept.
This commit is contained in:
parent
c42321ff0e
commit
3f5f348270
3 changed files with 34 additions and 19 deletions
|
|
@ -235,7 +235,8 @@ The model answers each classification in JSON. The answer holds:
|
|||
|
||||
- a **verdict**, one of _match_, _no match_ or _not applicable to this PR_
|
||||
- a **certainty** from 0 to 100, how sure the model is of that verdict
|
||||
- a **reason**, at most 500 characters
|
||||
- a **reason**; one over 500 characters is cut to 500, ending in `…`, and the
|
||||
verdict and certainty are kept
|
||||
|
||||
An answer:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue