Refactor message handling in app.py by introducing a dedicated function for message submission and reorganizing advanced settings in an accordion layout. Remove unused local model and update default model selection.
Update app.py to change local model selection and refine default system message formatting. Simplify layout by removing unnecessary row wrappers in Gradio interface and add advanced settings accordion for ChatInterface.
Refactor model selection in app.py; replace single model variables with lists for local and API models, and update the model selection mechanism in the chatbot interface.