Remove confidence scoring and refine correction prompts

This commit is contained in:
2026-11-11 17:05:52 +00:00
parent bbf89bb4f5
commit d155bf4cb3
92 changed files with 448 additions and 786 deletions

View File

@@ -13,7 +13,7 @@ func TestDecodeRepairResponse(t *testing.T) {
name, content string
valid bool
}{
{"revision with deletion", `{"proposal_ref":2,"action":"revise","correction":{"id":1,"original_text":" ","corrected_text":"","confidence":0.5}}`, true},
{"revision with deletion", `{"proposal_ref":2,"action":"revise","correction":{"id":1,"original_text":" ","corrected_text":""}}`, true},
{"withdrawal", `{"proposal_ref":2,"action":"withdraw","correction":null}`, true},
{"wrong reference", `{"proposal_ref":1,"action":"withdraw","correction":null}`, false},
{"missing revision", `{"proposal_ref":2,"action":"revise","correction":null}`, false},