Refactor chat_window.py and chat_application.py to remove direct dependencies on the LLM module during UI initialization.