AIdeaText commited on
Commit
1b7ac3d
1 Parent(s): 19b5d98

Update modules/chatbot/sidebar_chat.py

Browse files
Files changed (1) hide show
  1. modules/chatbot/sidebar_chat.py +4 -4
modules/chatbot/sidebar_chat.py CHANGED
@@ -94,11 +94,11 @@ def display_sidebar_chat(lang_code: str, chatbot_t: dict):
94
  {"role": "assistant", "content": full_response.strip()}
95
  )
96
 
97
- # Guardar conversación
98
  store_chat_history(
99
- st.session_state.username,
100
- 'sidebar',
101
- st.session_state.sidebar_messages
102
  )
103
 
104
  # Botón para limpiar chat
 
94
  {"role": "assistant", "content": full_response.strip()}
95
  )
96
 
97
+ # En la función donde guardamos el chat
98
  store_chat_history(
99
+ username=st.session_state.username,
100
+ messages=st.session_state.sidebar_messages,
101
+ analysis_type='sidebar' # Especificar el tipo
102
  )
103
 
104
  # Botón para limpiar chat