ParisNeo / lollms

Lord of LLMS
Apache License 2.0
270 stars 51 forks source link

can't download the Models #26

Open ainfosecchimp opened 5 months ago

ainfosecchimp commented 5 months ago

line 1243 in ..\LOLMS\installer_files\lollms_env\Lib\httpcleint.py - causes a 403 error when downloading the model. just hashing out the section like below causes the system to work perfectly.

def _validate_path(self, url):
    """Validate a url for putrequest."""
    # Prevent CVE-2019-9740.
    # hashed out by tim smith 27/05/24
    #match = _contains_disallowed_url_pchar_re.search(url)
    #if match:
    #    raise InvalidURL(f"URL can't contain control characters. {url!r} "
    #                     f"(found at least {match.group()!r})")