Improve prompt roles and correction repair context
This commit is contained in:
@@ -12,9 +12,11 @@ type RepairFinding struct {
|
||||
|
||||
// RepairRequest identifies the proposal version and its ordered findings.
|
||||
type RepairRequest struct {
|
||||
ProposalRef int `json:"proposal_ref"`
|
||||
Correction StructuredCorrectionProposal `json:"correction"`
|
||||
Findings []RepairFinding `json:"findings"`
|
||||
ProposalRef int `json:"proposal_ref"`
|
||||
Correction StructuredCorrectionProposal `json:"correction"`
|
||||
Findings []RepairFinding `json:"findings"`
|
||||
OriginalSegmentText *string `json:"original_segment_text,omitempty"`
|
||||
CorrectedSegmentText *string `json:"corrected_segment_text,omitempty"`
|
||||
}
|
||||
|
||||
func (r RepairRequest) JSON() (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user