Docs: Update benchmark for anthropic/claude-sonnet-5 EFF:high

This commit is contained in:
github-actions[bot]
2026-07-01 22:16:12 +00:00
parent 0c2cd5e395
commit 48dfa6cd44
12 changed files with 441 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
async function validateJSON(data, schema) {
const { default: Ajv } = await import('https://cdn.jsdelivr.net/npm/ajv@8/+esm');
const ajv = new Ajv({ allErrors: true, strict: false });
const validate = ajv.compile(schema);
const valid = validate(data);
const errors = valid
? []
: validate.errors.map(({ instancePath, message, params }) => {
const path = instancePath || '/';
const extra = params?.missingProperty
? ` (missing: ${params.missingProperty})`
: '';
return `${path}: ${message}${extra}`;
});
return { valid, errors };
}
export default validateJSON;
// Generation time: 6.311s
// Result: PASS