Hello! Thanks for Satania Buddy! But I have one error. I don't understand this and don't know how to solve it. When trying to install koboldcpp the lazy way, I get this error. How to solve it? (Worker "koboldcpp": Runtime error EConvertError: "" 62253068" is an invalid float" at line 83 data/scripts/libs/common/download.evil)
Viewing post in Satania Buddy comments
Hm I cannot reproduce the error on my system, even tho it has the same settings as yours.
Can you help me test the following code and show me the result? You can open the editor in Scripts -> Script editor, paste the code in and press "Run" button:
a = http_fetch('HEAD', 'https://github.com/LostRuins/koboldcpp/releases/download/v1.69.1/koboldcpp_nocuda.exe', [], null) while !http_is_success(a) yield res = http_result_get(a) talk('This should be fine: ' + res.headers['content-length']) talk('This is what causes error: ' + string(number(res.headers['content-length'])))
This code will make a HEAD request to get the file size, the 5th line is where the error happens.
If the error does happen, please also try the following code:
talk(number(string_trim(" 62253068"))) talk(number(" 62253068"))
Thanks. At least we know a way to fix it now :)
I will make a new release with the fix soon (See https://github.com/Kagamma/satania-buddy/commit/906a08dc9e79fc51281d42f307342b43...). In the meantime you can try to patch it yourself, by opening data/scripts/libs/common/download.evil using the editor and replace line 82 with:
size = number(string_trim(headers['content-length']))
And line 131 with:
pos += number(string_trim(part.headers['content-length']))
Save and then run koboldcpp script again. (note: The app does cache scripts in-memory to avoid having to recompile a script multiple times, so if you already run the script before, you need to close the app and then open the app again)