Contradictions explained

This commit is contained in:
AG
2025-10-12 14:57:31 +03:00
parent f42bac001d
commit e752c8d4d3
3 changed files with 16 additions and 9 deletions

View File

@@ -141,9 +141,9 @@ export const createWebSocketServer = (server: any) => {
return;
}
const hasContradictions = await llmService.checkForInnerContradictions(payload.response);
if (hasContradictions) {
ws.send(JSON.stringify({ type: 'ERROR', payload: { message: 'Your submission contains inner contradictions. Please resolve them and submit again.' } }));
const hasContradictionsGist = await llmService.checkForInnerContradictions(payload.response);
if (hasContradictionsGist) {
ws.send(JSON.stringify({ type: 'ERROR', payload: { message: `Your submission contains inner contradictions: ${hasContradictionsGist} Please resolve them and submit again.` } }));
return;
}