XThomasBU commited on
Commit ·
669108f
1
Parent(s): d4cb771
format updates
Browse files12 unmodified lines13141516171819472 unmodified lines49249349449549649749849950050150250350450550612 unmodified linesget_sources,get_history_chat_resume,get_history_setup_llm,get_last_config,)from modules.chat_processor.helpers import (update_user_info,472 unmodified lines).send()async def on_chat_resume(self, thread: ThreadDict):thread_config = Nonesteps = thread["steps"]k = self.config["llm_params"]["memory_window"] # on resume, alwyas use the default memory windowconversation_list = get_history_chat_resume(steps, k, SYSTEM, LLM)thread_config = get_last_config(steps) # TODO: Returns None for now - which causes config to be reloaded with default valuescl.user_session.set("memory", conversation_list)await self.start()12 unmodified lines13141516171819472 unmodified lines49249349449549649749849950050150250350450550612 unmodified linesget_sources,get_history_chat_resume,get_history_setup_llm,# get_last_config,)from modules.chat_processor.helpers import (update_user_info,472 unmodified lines).send()async def on_chat_resume(self, thread: ThreadDict):# thread_config = Nonesteps = thread["steps"]k = self.config["llm_params"]["memory_window"] # on resume, alwyas use the default memory windowconversation_list = get_history_chat_resume(steps, k, SYSTEM, LLM)# thread_config = get_last_config(# steps# ) # TODO: Returns None for now - which causes config to be reloaded with default valuescl.user_session.set("memory", conversation_list)await self.start()
apps/ai_tutor/chainlit_app.py+5-5