mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for anthropic/claude-opus-4.6 TEMP:0.4
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
async function validateJSON(json, schema) {
|
||||
const { default: Ajv } = await import("https://esm.sh/ajv@8");
|
||||
const ajv = new Ajv({ allErrors: true });
|
||||
const valid = ajv.validate(schema, json);
|
||||
return {
|
||||
valid,
|
||||
errors: valid ? [] : ajv.errors.map(e => `${e.instancePath || "/"} ${e.message}`)
|
||||
};
|
||||
}
|
||||
export default validateJSON;
|
||||
// Generation time: 3.592s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user