mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark for openai/gpt-5.1-codex-max
This commit is contained in:
10
tests/8_json_validator/outputs/openai_gpt-5.1-codex-max.js
Normal file
10
tests/8_json_validator/outputs/openai_gpt-5.1-codex-max.js
Normal file
@@ -0,0 +1,10 @@
|
||||
async function validateJSON(d,s){
|
||||
const{default:A}=await import('https://cdn.skypack.dev/ajv@8.12.0')
|
||||
const a=new A
|
||||
const v=a.compile(s)
|
||||
const ok=v(d)
|
||||
return ok?{valid:!0,errors:[]}:{valid:!1,errors:v.errors.map(e=>(e.instancePath||'root')+' '+e.message)}
|
||||
}
|
||||
export default validateJSON;
|
||||
// Generation time: 4.189s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user