mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for google/gemini-3.1-pro-preview
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export const validateJSON = async (d, s) => {
|
||||
const { default: A } = await import("https://esm.sh/ajv@8");
|
||||
const v = new A({ allErrors: true }).compile(s);
|
||||
const k = v(d);
|
||||
|
||||
return {
|
||||
valid: k,
|
||||
errors: k ? [] : v.errors.map(e => `${e.instancePath || "/"} ${e.message}`.trim())
|
||||
};
|
||||
};
|
||||
export default validateJSON;
|
||||
// Generation time: 16.896s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user