Spaces:
Build error
Build error
XThomasBU
commited on
Commit
·
669108f
1
Parent(s):
d4cb771
format updates
Browse files
apps/ai_tutor/chainlit_app.py
CHANGED
|
@@ -13,7 +13,7 @@ from modules.chat.helpers import (
|
|
| 13 |
get_sources,
|
| 14 |
get_history_chat_resume,
|
| 15 |
get_history_setup_llm,
|
| 16 |
-
get_last_config,
|
| 17 |
)
|
| 18 |
from modules.chat_processor.helpers import (
|
| 19 |
update_user_info,
|
|
@@ -492,15 +492,15 @@ class Chatbot:
|
|
| 492 |
).send()
|
| 493 |
|
| 494 |
async def on_chat_resume(self, thread: ThreadDict):
|
| 495 |
-
thread_config = None
|
| 496 |
steps = thread["steps"]
|
| 497 |
k = self.config["llm_params"][
|
| 498 |
"memory_window"
|
| 499 |
] # on resume, alwyas use the default memory window
|
| 500 |
conversation_list = get_history_chat_resume(steps, k, SYSTEM, LLM)
|
| 501 |
-
thread_config = get_last_config(
|
| 502 |
-
|
| 503 |
-
) # TODO: Returns None for now - which causes config to be reloaded with default values
|
| 504 |
cl.user_session.set("memory", conversation_list)
|
| 505 |
await self.start()
|
| 506 |
|
|
|
|
| 13 |
get_sources,
|
| 14 |
get_history_chat_resume,
|
| 15 |
get_history_setup_llm,
|
| 16 |
+
# get_last_config,
|
| 17 |
)
|
| 18 |
from modules.chat_processor.helpers import (
|
| 19 |
update_user_info,
|
|
|
|
| 492 |
).send()
|
| 493 |
|
| 494 |
async def on_chat_resume(self, thread: ThreadDict):
|
| 495 |
+
# thread_config = None
|
| 496 |
steps = thread["steps"]
|
| 497 |
k = self.config["llm_params"][
|
| 498 |
"memory_window"
|
| 499 |
] # on resume, alwyas use the default memory window
|
| 500 |
conversation_list = get_history_chat_resume(steps, k, SYSTEM, LLM)
|
| 501 |
+
# thread_config = get_last_config(
|
| 502 |
+
# steps
|
| 503 |
+
# ) # TODO: Returns None for now - which causes config to be reloaded with default values
|
| 504 |
cl.user_session.set("memory", conversation_list)
|
| 505 |
await self.start()
|
| 506 |
|