Update modules/chatbot/chat_process.py
Browse files
modules/chatbot/chat_process.py
CHANGED
@@ -50,15 +50,6 @@ class ChatProcessor:
|
|
50 |
except Exception as e:
|
51 |
logger.error(f"Error en process_chat_input: {str(e)}")
|
52 |
yield f"Error: {str(e)}"
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
################################################################
|
63 |
'''
|
64 |
def process_chat_input(self, message: str, lang_code: str) -> Generator[str, None, None]:
|
@@ -102,10 +93,10 @@ class ChatProcessor:
|
|
102 |
"""
|
103 |
Retorna el historial de la conversaci贸n
|
104 |
"""
|
105 |
-
|
106 |
|
107 |
def clear_history(self):
|
108 |
"""
|
109 |
Limpia el historial de la conversaci贸n
|
110 |
"""
|
111 |
-
|
|
|
50 |
except Exception as e:
|
51 |
logger.error(f"Error en process_chat_input: {str(e)}")
|
52 |
yield f"Error: {str(e)}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
################################################################
|
54 |
'''
|
55 |
def process_chat_input(self, message: str, lang_code: str) -> Generator[str, None, None]:
|
|
|
93 |
"""
|
94 |
Retorna el historial de la conversaci贸n
|
95 |
"""
|
96 |
+
return self.conversation_history
|
97 |
|
98 |
def clear_history(self):
|
99 |
"""
|
100 |
Limpia el historial de la conversaci贸n
|
101 |
"""
|
102 |
+
self.conversation_history = []
|