Docs: Update Gemini benchmark results

This commit is contained in:
github-actions[bot]
2025-11-18 19:30:39 +00:00
parent 51a98c1e1b
commit 76fb066932
133 changed files with 2340 additions and 0 deletions
@@ -0,0 +1,14 @@
const validateJSON = async (data, schema) => {
try {
const { default: Ajv } = await import('https://esm.sh/ajv@8.17.1')
const validate = new Ajv({ allErrors: true }).compile(schema)
const valid = validate(data)
return {
valid,
errors: valid ? [] : validate.errors.map(e => `${e.instancePath} ${e.message}`.trim())
}
} catch (e) {
return { valid: false, errors: [e.message] }
}
}
export default validateJSON;