0xN1 / kisahari

a personal journaling app where you can chat with your entries locally
https://kisahari.app
28 stars 4 forks source link

Bug: Infinite loading on modeltypeselector for user with no ollama install on local machine #5

Closed apikmeister closed 5 months ago

apikmeister commented 5 months ago

any ollama function can't be called on machine that doesn't have ollama installed

Reproduce:

apikmeister commented 5 months ago

Feature enhancement:

0xN1 commented 5 months ago

any ollama function can't be called on machine that doesn't have ollama installed

Reproduce:

  • surround with try catch (will return undefined and error if there is no ollama)
  • add custom loadingstate

thank you for pointing this out! totally missed this since i already have ollama and models installed

Feature enhancement:

  • Add options for user to install model using ollama.pull (if it works)
  • maybe make a dialog for it, because Screenshot 2024-02-13 at 10 56 17 AM

yeah this one would be cool. perhaps can do similar dialog like add entry. but we still need to check if they have ollama. one more idea, the dropdown would have an empty state like: + add model

this + add model can be the CTA for the dialog. please open a new issue for this for enhancement.