Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update modules/chatbot/sidebar_chat.py
Browse files
    	
        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 | 
            -
                                #  | 
| 98 | 
             
                                store_chat_history(
         | 
| 99 | 
            -
                                    st.session_state.username,
         | 
| 100 | 
            -
                                     | 
| 101 | 
            -
                                     | 
| 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
         | 
