Compare commits
1 Commits
fix/94-saf
...
fix/test-n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22ee463a3d |
@@ -98,7 +98,7 @@ class TestDetection(unittest.TestCase):
|
|||||||
|
|
||||||
def test_none_input(self):
|
def test_none_input(self):
|
||||||
"""None input should not crash."""
|
"""None input should not crash."""
|
||||||
r = detect_crisis("")
|
r = detect_crisis(None)
|
||||||
self.assertEqual(r.level, "NONE")
|
self.assertEqual(r.level, "NONE")
|
||||||
|
|
||||||
def test_score_ranges(self):
|
def test_score_ranges(self):
|
||||||
|
|||||||
@@ -1199,7 +1199,6 @@ Sovereignty and service always.`;
|
|||||||
if (fullText) {
|
if (fullText) {
|
||||||
messages.push({ role: 'assistant', content: fullText });
|
messages.push({ role: 'assistant', content: fullText });
|
||||||
saveMessages();
|
saveMessages();
|
||||||
checkCrisis(fullText);
|
|
||||||
}
|
}
|
||||||
isStreaming = false;
|
isStreaming = false;
|
||||||
sendBtn.disabled = msgInput.value.trim().length === 0;
|
sendBtn.disabled = msgInput.value.trim().length === 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user