Skip to content

Commit e5d81f0

Browse files
steven10aCopilot
andauthored
Update src/checks/llm-base.ts
Co-authored-by: Copilot <[email protected]>
1 parent 430cd6a commit e5d81f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/checks/llm-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export async function runLLM<TOutput extends ZodTypeAny>(
333333
});
334334
}
335335

336-
// Fail-closed on JSON parsing errors (malformed or non-JSON responses)
336+
// Fail-open on JSON parsing errors (malformed or non-JSON responses)
337337
if (error instanceof SyntaxError || (error as Error)?.constructor?.name === 'SyntaxError') {
338338
console.warn('LLM returned non-JSON or malformed JSON.', error);
339339
return LLMErrorOutput.parse({

0 commit comments

Comments
 (0)