Update src/chat_display.py
Browse files- src/chat_display.py +3 -10
src/chat_display.py
CHANGED
|
@@ -42,14 +42,8 @@ def display_chat_history():
|
|
| 42 |
# Show message count for debugging
|
| 43 |
# st.caption(f"Displaying {len(history)} messages")
|
| 44 |
|
| 45 |
-
#
|
| 46 |
-
|
| 47 |
-
max_display_messages = 20
|
| 48 |
-
display_history = history[-max_display_messages:] if len(history) > max_display_messages else history
|
| 49 |
-
|
| 50 |
-
# Show indicator if some messages are hidden
|
| 51 |
-
if len(history) > max_display_messages:
|
| 52 |
-
st.caption(f"Showing most recent {max_display_messages} of {len(history)} messages")
|
| 53 |
|
| 54 |
for message in display_history:
|
| 55 |
if message["role"] == "user":
|
|
@@ -109,5 +103,4 @@ def display_legal_disclaimer():
|
|
| 109 |
<div class="footer-text">
|
| 110 |
For informational purposes only. Not a substitute for professional medical advice.
|
| 111 |
</div>
|
| 112 |
-
""", unsafe_allow_html=True)
|
| 113 |
-
|
|
|
|
| 42 |
# Show message count for debugging
|
| 43 |
# st.caption(f"Displaying {len(history)} messages")
|
| 44 |
|
| 45 |
+
# Display all messages instead of limiting to a fixed number
|
| 46 |
+
display_history = history
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
for message in display_history:
|
| 49 |
if message["role"] == "user":
|
|
|
|
| 103 |
<div class="footer-text">
|
| 104 |
For informational purposes only. Not a substitute for professional medical advice.
|
| 105 |
</div>
|
| 106 |
+
""", unsafe_allow_html=True)
|
|
|