We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430cd6a commit e5d81f0Copy full SHA for e5d81f0
src/checks/llm-base.ts
@@ -333,7 +333,7 @@ export async function runLLM<TOutput extends ZodTypeAny>(
333
});
334
}
335
336
- // Fail-closed on JSON parsing errors (malformed or non-JSON responses)
+ // Fail-open on JSON parsing errors (malformed or non-JSON responses)
337
if (error instanceof SyntaxError || (error as Error)?.constructor?.name === 'SyntaxError') {
338
console.warn('LLM returned non-JSON or malformed JSON.', error);
339
return LLMErrorOutput.parse({
0 commit comments