LostRuins / lite.koboldai.net

A zero dependency web UI for KoboldAI Horde
GNU Affero General Public License v3.0
69 stars 34 forks source link

PrePrompts are all mixed up #71

Closed Dorumin closed 3 months ago

Dorumin commented 3 months ago

The chat and adventure mode PrePrompt checkboxes seem inverted; they're in the wrong sections.

Adventure is bound to chat_context_mod: https://github.com/LostRuins/lite.koboldai.net/blob/3ec45673ed2dc7ad19f5fdc967e843cf8c3b03e0/index.html#L15350

Chat is bound to adventure_context_mod: https://github.com/LostRuins/lite.koboldai.net/blob/3ec45673ed2dc7ad19f5fdc967e843cf8c3b03e0/index.html#L15338

Also, the injected context for chat mode also seems to mess up when you try to impersonate yourself.

It uses co: https://github.com/LostRuins/lite.koboldai.net/blob/3ec45673ed2dc7ad19f5fdc967e843cf8c3b03e0/index.html#L10288

Which is overwritten when you're impersonating yourself (for convenience, I guess, and not have to check the boolean on lots of places): https://github.com/LostRuins/lite.koboldai.net/blob/3ec45673ed2dc7ad19f5fdc967e843cf8c3b03e0/index.html#L10242

Changing co to localsettings.chatopponent should be good enough to fix it, I think

LostRuins commented 3 months ago

fixed, live in lite

Dorumin commented 3 months ago

Looks fixed to me, rad. Closing