Add trim_history function and update lesson chat route to handle text and audio inputs a4cb278 ABAO77 commited on Aug 23