Docs: Update benchmark for google/gemini-3.5-flash

This commit is contained in:
github-actions[bot]
2026-05-19 23:06:38 +00:00
parent a037a78102
commit 1dfaf490cd
12 changed files with 389 additions and 0 deletions

View File

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