Trivial change, except for also having to change all the prompts to work well with Mistral. LLMs are not equal, you have to ask each one "nicely" in a different way.
I think it would be really cool to get it running with something like Mistral in the browser: https://webllm.mlc.ai/