This one is more opinionated, so feel free to give feedback.
Might not be exactly how you'd handle this.
But issue is, when I first ran this app, it wasn't clear to me why I was getting errors even though I had a model installed.
Of course, it's because I neglected to set a .env default model variable or change the fallback model in ollama.ts.
So here, I just added a toast alert to specify what exactly is going on; you may want to handle this in your own way, but this was my initial thought.
This will probably also have implications when you get into adding/ deleting models?
When this error alert is combined with my first PR (adding useEffect to ModelSelector), I think it makes it a bit clearer to the user what is going on.
This one is more opinionated, so feel free to give feedback. Might not be exactly how you'd handle this.
But issue is, when I first ran this app, it wasn't clear to me why I was getting errors even though I had a model installed. Of course, it's because I neglected to set a .env default model variable or change the fallback model in ollama.ts. So here, I just added a toast alert to specify what exactly is going on; you may want to handle this in your own way, but this was my initial thought. This will probably also have implications when you get into adding/ deleting models?
When this error alert is combined with my first PR (adding useEffect to ModelSelector), I think it makes it a bit clearer to the user what is going on.