Fixed a crash when using certain AI models

If you were using certain free AI models, you might have run into the app suddenly crashing or not responding. That was happening because some of these models send back answers in a slightly different format than expected.

We've added a safety net so the app handles those differences gracefully. Whether you're using a popular model or trying out a free alternative, everything should work without any hiccups now.