Fancier [Y/N/B], does not require for you to press the letter and then enter, and also asks you if you want to download the model instead of downloading it automatically if you don't have it.
Pressing B lets you open the link in the browser for a faster download because most browsers support multi-segment downloads. With Invoke-WebRequest it would take me ~30 minutes to download with a 200Mbps speed.
Also lets you retry the download if failed or disconnected.
If previously there were a "models" folder, it would just close the install.bat window and wouldn't continue, so I removed the "else ()" and also added a "IF NOT EXIST models/gpt4all-lora-quantized-ggml.bin" if the user already had the model manually downloaded
Also added a (y/n) choice
If previously there were a "models" folder, it would just close the install.bat window and wouldn't continue, so I removed the "else ()" and added a "IF NOT EXIST models/gpt4all-lora-quantized-ggml.bin" if the user already had the model manually downloaded
Changed to "%ERRORLEVEL%" because ".ERRORLEVEL." is not a valid syntax, this should fix the "Failed to install required packages. Please check your internet connection and try again. Press any key to continue . . ." error despite the requirements being installed correctly.
The current code assumes that the models directory exists, but this may not always be the case. If the models directory does not exist, the Invoke-WebRequest command fails with a DirectoryNotFoundException error.