TextThinking
sdvm-fix-1 reads an audited sample and returns it fixed, with a fix: changes, flagged when something could not be resolved, attempts. A sample never comes back worse than it arrived.
Pass it what sdvm-audit-1 returned. A sample without an audit is audited first.
Fixer(api_key=...).run(audited) attaches it to each sample’s .fix. [s for s in fixed if s.fix["flagged"]] is the review queue.
A real request and response
The audited sample from sdvm-audit-1, as returned.ctx:the lowercaseshewas capitalised. The wording of the stem is unchanged.- The distractors were rewritten to the length of the correct choice, which is untouched.
auditis the one that came in, so nothing was audited again.sdvm-fix-1does not re-audit; Refine does.
Options
int
default:"1"
Tries at an accepted fix, 1 to 5. A flagged sample is tried again on the original with what went wrong as feedback, stopping at the first accepted fix. On
FixerConfig; on the HTTP API, config: {"max_attempts": 3}.str | None
default:"None"
Dataset conventions the model must not read as defects. See Dataset conventions.
run takes a list of samples, up to 100 per request.