Contradictions explained
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user