amirrezaDev1378 / ollama-model-direct-download

Ollama model direct link generator and installer.
14 stars 0 forks source link

Use Environment Variable for modelsPath #2

Open hhxc-0 opened 14 hours ago

hhxc-0 commented 14 hours ago

Hi,

I noticed that the installer is using a hard-coded modelsPath. However, it seems that the path can also be specified using the environment variable OLLAMA_MODELS according to this documentation.

I suggest updating the installer to read the models path from the environment variable. This would allow users to set their preferred download location more easily.

Thanks for considering this!

hhxc-0 commented 13 hours ago

It would be better to first check for the environment variable and use the hard-coded path as a fallback.