Commit Graph

3447 Commits

Author SHA1 Message Date
kwaroran
da2ca7099f fix: lua chat functions (#782)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] 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?
- [ ] Have you added type definitions?

# Description
The community have reported an issue where chat array-related effects
malfunction when using modules using Lua alongside modules using blocks.
It appears that my previous PR, #639, may be the cause of this problem.
This PR included the following changes:

1. Reverted a previous change to allow Lua triggers to cycle correctly
within the trigger pipeline.
2. After that, the issue that the previous PR attempted to fix has
(understandably) resurfaced. To address this, I've taken a different
approach: To prevent a situation where a created Lua mutex would
eternally reference a single chat object if not initialized again, I've
added a chat variable to the `luaEngineState` interface and updated it
on every call.
3. I noticed that the `removeChat` function was included twice in the
Lua bindings. I've removed one. (Or was this intentional?)
4. Modified the `getFullChat` function to also return the creation time
of the chat.

Just in case, I've also attached a link to the bot card with Lua trigger
I used for testing: https://files.catbox.moe/ujqt3o.jpeg
2025-03-13 16:37:32 +09:00
kwaroran
477bf2baeb feat:Add 'module_assetlist' cbs (#786)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] 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?
- [ ] Have you added type definitions?

# Description
It would be convenient if there was a cbs like this when handling module
assets. Thanks for your time.
2025-03-13 16:37:18 +09:00
bangonicdd
aaa9dfc2dc feat:Add 'module_assetlist' cbs 2025-03-12 22:34:29 +09:00
kwaroran
e2e7f38666 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-03-12 10:04:33 +09:00
kwaroran
de8f8a8e1c Add claudeRetrivalCaching 2025-03-12 10:04:26 +09:00
Kwaroran
f62de63f09 chatCompression support for node 2025-03-10 22:29:26 +09:00
Kwaroran
2738237f6b Add lastDate property to Chat interface and update chat lastDate on preload 2025-03-10 22:25:08 +09:00
Kwaroran
40bf90a9df fix Loading chat data 2025-03-10 22:24:11 +09:00
Kwaroran
1a3c111830 Fix help keys 2025-03-10 19:42:45 +09:00
Kwaroran
823606f825 Bump version to 153.0.0 in configuration and related files 2025-03-10 19:39:12 +09:00
Kwaroran
e2c92ed473 Add conditional rendering for chat compression based on server type 2025-03-10 19:38:55 +09:00
Kwaroran
d400109a85 Add compressions 2025-03-10 19:37:35 +09:00
kwaroran
488ca25d0f Add cold storage functionality and preload chat data 2025-03-10 16:13:40 +09:00
kwaroran
5c2d821445 Add automatic cache point 2025-03-10 13:57:02 +09:00
kwaroran
188e2dd05d Add show folder name option 2025-03-10 13:38:12 +09:00
kwaroran
cf430928b0 Add toggle fixed values 2025-03-10 13:23:19 +09:00
kwaroran
5300c53c7f Fix cache indexes 2025-03-10 13:14:20 +09:00
bangonicdd
71ee015f21 fix: lua chat functions 2025-03-09 19:58:08 +09:00
Kwaroran
5fc36ce323 Bump version to 152.0.1 2025-03-08 19:29:35 +09:00
Kwaroran
5bd76e6e41 Fix toggle 2025-03-08 19:29:22 +09:00
Kwaroran
407112273e Fix typos 2025-03-08 19:27:09 +09:00
Kwaroran
4510bb65c2 Remove reasoning effort 2025-03-08 19:26:04 +09:00
Kwaroran
5acb02db65 Fix slot 2025-03-08 19:23:26 +09:00
Kwaroran
ee319a38cd Fix reverse 2025-03-08 18:13:04 +09:00
Kwaroran
743b2544a5 bump: update version to 152.0.0 2025-03-08 18:06:07 +09:00
Kwaroran
5969ac15f3 Fix asset cleaning 2025-03-08 18:05:45 +09:00
Kwaroran
4e7514efc0 Remove experimental caching 2025-03-08 17:52:07 +09:00
Kwaroran
93a53da983 Add cache point 2025-03-08 17:49:19 +09:00
Kwaroran
02fb780395 Expand additional parameters 2025-03-08 17:30:10 +09:00
Kwaroran
462e2d04b9 fix: correct variable replacement in prompt parsing 2025-03-08 17:24:16 +09:00
Kwaroran
3d03c84249 Add parameters to custom APIs, closes #771 2025-03-08 17:22:32 +09:00
Kwaroran
4e23487376 fix: remove unnecessary text size class from toggle labels 2025-03-08 16:53:31 +09:00
Kwaroran
d91abce00a Add new toggles 2025-03-08 16:51:17 +09:00
Kwaroran
7c3ad57856 Add bgm cbs 2025-03-08 15:25:10 +09:00
Kwaroran
4648e0b5b2 Remove cache due to caching error 2025-03-08 14:20:25 +09:00
kwaroran
6840a37b5f Update providers list in OpenrouterSettings.svelte (#780)
# PR Checklist
- [X] 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?

~~I'm an idiot but I see no reasons why this wouldn't work, it's just a
list update. (。•̀ᴗ-)✧~~
Edit: Yes, it does work in local Docker copy.

# Description
Copied directly from
https://openrouter.ai/docs/features/provider-routing
2025-03-08 14:14:43 +09:00
kwaroran
958c91a687 fix: 기존 캐릭터에 폴더 추가 안되는 것 수정 (#779)
existing character chat folder

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] 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?
- [ ] Have you added type definitions?

# Description
기존 캐릭터에 폴더 추가 안되는 것을 수정하는 PR입니다.
2025-03-08 14:14:16 +09:00
cloak1505
e1c43e5a8e Add trailing comma
Better practice, and prevents <Arcodion> from being diff'd as a changed line.
2025-03-07 12:39:10 -06:00
cloak1505
de5ce61f3a Update providers list in OpenrouterSettings.svelte 2025-03-07 11:43:50 -06:00
chatbung
3e6e3172d8 fix:
existing character chat folder
2025-03-05 12:56:00 +09:00
Kwaroran
6d1482b80e chore: update application version to 151.1.0 2025-03-05 06:35:05 +09:00
Kwaroran
30ce63bfcd Add gpt 4.5 2025-03-05 06:34:49 +09:00
Kwaroran
17bd35e452 Revert #773 f7ea95aeea due to critical bug 2025-03-05 06:30:57 +09:00
Kwaroran
5026a96ce9 chore: update application version to 151.0.0 2025-03-05 05:42:20 +09:00
Kwaroran
3d8b410d03 feat: integrate local activation state into global lorebook rendering 2025-03-05 05:41:41 +09:00
Kwaroran
6ed005b733 feat: add local activation option in global lorebook settings 2025-03-05 05:41:04 +09:00
kwaroran
90a744a0f1 Fix Docker image build error (#774)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] 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?
- [ ] Have you added type definitions?

# Description

This PR fixes #749.
The npm registry key rotation caused the issue. Bumping Corepack to >=
0.31.0 fixes it.
2025-03-05 05:39:11 +09:00
kwaroran
babc18a830 Optimize chat rendering and performance with caching and lazy loading (#773)
# 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
Enhance chat application efficiency by implementing caching for markdown
parsing and message forms, along with lazy loading and virtual scrolling
for improved performance in large chat histories. Introduce a cleanup
mechanism for cache management.
2025-03-05 05:39:00 +09:00
kwaroran
7c0a2337fa feat: aws sonnet 3.7 + legacy (#772)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] 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?
- [ ] Have you added type definitions?

# Description
This PR aims to enable the use of the newly added claude 3.7 sonnet
model (and some legacys (¬‿¬)) on AWS.
2025-03-05 05:38:29 +09:00
kwaroran
fe81ae9312 feat: add local activation for lorebook (#767)
# PR Checklist
- [x] 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
This PR adds a toggle to enable lore books specifically for the current
chat session. This feature is expected to be particularly useful for
simulator-style chatbots as it allows users to select and activate
specific lore books for each chat from a pre-configured set. If you have
other idea, feel free to give any feedback or suggestions on this.


![image](https://github.com/user-attachments/assets/8b887b79-2bd0-40d5-914d-d3b901e4b71e)

![image](https://github.com/user-attachments/assets/fbb34bca-0a54-4698-9156-68e258bff97e)

![image](https://github.com/user-attachments/assets/eb98a81d-d248-4738-b142-22023feb0c66)
2025-03-05 05:38:17 +09:00