LostRuins / koboldcpp

A simple one-file way to run various GGML and GGUF models with KoboldAI's UI
https://github.com/lostruins/koboldcpp
GNU Affero General Public License v3.0
4.34k stars 310 forks source link

Check for keyanti before accessing it #918

Closed valadaptive closed 2 weeks ago

valadaptive commented 2 weeks ago

Adding anti worldinfo keys seems to have resulted in all old stories failing to load because their WI entries didn't have the keyanti property, and we try to access its length when loading it.

LostRuins commented 2 weeks ago

Thanks for the fix! But in future, please direct any PRs for Kobold Lite to the correct repo which is at https://github.com/LostRuins/lite.koboldai.net

I will manually merge this fix there, and sync it over for now. https://github.com/LostRuins/lite.koboldai.net/commit/9b5d9650c034663ad3ca654186f3710def287a6a