Files
risuai/src
kwaroran 598ffe302b fix: Prevent error with loadLoreBooks() in short context length (#857)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [x] Have you added type definitions?

# Description

When a user uses short max context length and `reserve` is bigger than
the length, `loadLoreBooksMain` returns a `nil` but `loadLoreBooks`
tries to decode it as a JSON.

It will return a stringified empty array instead of a nil.
2025-05-24 20:23:15 +09:00
..
2025-05-19 17:28:22 +09:00
2025-05-19 17:28:22 +09:00
2025-05-17 01:42:08 +09:00
2024-10-26 21:17:46 +09:00
2025-04-14 15:28:14 +09:00
2025-01-30 13:50:16 +09:00
2025-05-17 02:46:14 +09:00
2025-02-19 16:40:21 +09:00