Spaces:
Sleeping
Sleeping
fixed citations
Browse files- src/App.js +12 -5
src/App.js
CHANGED
|
@@ -1448,9 +1448,12 @@ function Message({ message }) {
|
|
| 1448 |
) : null}
|
| 1449 |
</div>
|
| 1450 |
)}
|
| 1451 |
-
{
|
| 1452 |
-
|
| 1453 |
-
|
|
|
|
|
|
|
|
|
|
| 1454 |
<ul style={{ marginTop: "5px", paddingLeft: "20px" }}>
|
| 1455 |
{message.debug.evidence.citations.map((c, idx) => (
|
| 1456 |
<li key={idx} style={{ marginBottom: "4px" }}>
|
|
@@ -1473,8 +1476,12 @@ function Message({ message }) {
|
|
| 1473 |
</li>
|
| 1474 |
))}
|
| 1475 |
</ul>
|
| 1476 |
-
|
| 1477 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1478 |
{message.debug.evidence.obligations && (
|
| 1479 |
<div style={{ marginTop: "8px" }}>
|
| 1480 |
<div style={{ fontWeight: "600" }}>Proof obligations:</div>
|
|
|
|
| 1448 |
) : null}
|
| 1449 |
</div>
|
| 1450 |
)}
|
| 1451 |
+
{/* Always show citations status, even if empty */}
|
| 1452 |
+
<div style={{ marginTop: "8px" }}>
|
| 1453 |
+
<div style={{ fontWeight: "600" }}>
|
| 1454 |
+
Citations: {message.debug.evidence.citations ? message.debug.evidence.citations.length : 0}
|
| 1455 |
+
</div>
|
| 1456 |
+
{message.debug.evidence.citations && message.debug.evidence.citations.length > 0 ? (
|
| 1457 |
<ul style={{ marginTop: "5px", paddingLeft: "20px" }}>
|
| 1458 |
{message.debug.evidence.citations.map((c, idx) => (
|
| 1459 |
<li key={idx} style={{ marginBottom: "4px" }}>
|
|
|
|
| 1476 |
</li>
|
| 1477 |
))}
|
| 1478 |
</ul>
|
| 1479 |
+
) : (
|
| 1480 |
+
<div style={{ color: "#666", fontSize: "0.9em", marginTop: "4px" }}>
|
| 1481 |
+
(No citation markers [0], [1], [2]... found in response)
|
| 1482 |
+
</div>
|
| 1483 |
+
)}
|
| 1484 |
+
</div>
|
| 1485 |
{message.debug.evidence.obligations && (
|
| 1486 |
<div style={{ marginTop: "8px" }}>
|
| 1487 |
<div style={{ fontWeight: "600" }}>Proof obligations:</div>
|