Commit Graph

989 Commits

Author SHA1 Message Date
Kwaroran
480d33a673 Remove debug logging from image processing in requestGoogleCloudVertex function 2025-03-13 20:21:45 +09:00
kwaroran
20087a09b2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-03-13 16:38:41 +09:00
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
de788bc16c Add fallbacks 2025-03-13 16:36:54 +09:00
kwaroran
7d7cef4a69 Add gemini image response 2025-03-13 14:18:05 +09:00
kwaroran
8a782ab24f add assetprompt cbs 2025-03-13 12:13:09 +09:00
kwaroran
b26f58d496 Add assistant multimodal handling for gemini 2025-03-13 09:52:58 +09:00
kwaroran
190f3d7729 Enhance cold storage handling by updating chat data structure and ensuring compatibility with existing data formats 2025-03-12 10:33:46 +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
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
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
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
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
ff20d07829 Merge branch 'main' into local_lore2 2025-03-05 05:38:11 +09:00
Bo26fhmC5M
1775591ef0 feat: add support for OpenAI-compatible embedding API 2025-02-27 23:27:50 +09:00
Kwaroran
929108def3 Add error handling 2025-02-26 12:22:10 +09:00
Kwaroran
4e69ee6445 refactor: remove unnecessary controller.enqueue calls and optimize text handling 2025-02-26 12:19:34 +09:00
Kwaroran
5a4b7bbef2 Add anti server overload 2025-02-26 09:14:32 +09:00
bangonicdd
63f7e41df3 feat: aws sonnet 3.7 + legacy 2025-02-25 17:43:13 +09:00
Kwaroran
07717a7937 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-02-25 05:27:24 +09:00
Kwaroran
6c72d78157 Add Sonnet 3.7 2025-02-25 05:25:34 +09:00
Kwaroran
21e311b7a4 Remove thought input in gemini 2025-02-25 04:41:12 +09:00
Kwaroran
ed2957fc50 Upgrade translator playground 2025-02-25 04:36:58 +09:00
bangonicdd
d584139047 revert: make always deduplicate modules 2025-02-23 21:39:41 +09:00
bangonicdd
b10fccd3c4 feat: add local activation for lorebook 2025-02-21 21:01:20 +09:00
kwaroran
c88706ea5c fix: issue with asset names case-insensitive (#760)
# 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 addresses the issue where asset names were only recognized when
entered in lowercase, even if they were originally uppercase. It ensures
that asset names are now case-insensitive, aligning with the intended
behavior.
2025-02-16 19:15:07 +09:00
Kwaroran
e6cba3865b Improve triggerv2 2025-02-16 19:13:49 +09:00
Kwaroran
1b1d43cf1b Add request related triggers 2025-02-16 02:55:27 +09:00
Kwaroran
d6472971c5 Add wait and updategui trigger 2025-02-16 00:39:11 +09:00
Kwaroran
c8c243bf08 fix: add error handling in processScriptFull for display mode 2025-02-15 22:03:18 +09:00
Kwaroran
f250ee4f4c fix: handle undefined displayData in processScriptFull function 2025-02-15 21:58:03 +09:00
Kwaroran
aa21966d64 refactor: remove unused 'v2GetCharCount' case from runTrigger function 2025-02-15 21:39:10 +09:00
Kwaroran
dce4f11593 Add runLLM model selection 2025-02-15 21:37:28 +09:00
Kwaroran
dcc7c56726 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-02-15 21:32:11 +09:00
Kwaroran
d2fce340bb Add TriggerV2 2025-02-15 21:29:37 +09:00
bangonicdd
9773dc48a9 fix: adjust pipelineness in prev PR for easing further managing 2025-02-15 00:41:15 +09:00
bangonicdd
b783dc9874 feat: reintroduce module integration 2025-02-10 09:02:57 +09:00
kwaroran
852a629a34 fix: stringify object in HypaProcesser to display actual error content instead of [object Object] (#753)
# 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?
- [ ] Have you added type definitions?

# Description

![1](https://github.com/user-attachments/assets/04012607-375c-4128-abf0-50ef6daae3b6)

The error messages were not properly displayed, showing [object Object]
instead of the actual content.
<br>


![2](https://github.com/user-attachments/assets/5ff217ab-cb50-41e1-b2eb-a9ba8eeef094)

This PR improves error handling to display actual error content.
2025-02-09 16:25:09 +09:00
kwaroran
7e71d03d21 Merge branch 'main' into patch-25 2025-02-09 16:24:49 +09:00
Bo26fhmC5M
80ba79e2ab fix: stringify object in HypaProcesser to display actual error content instead of [object Object] 2025-02-08 21:33:34 +09:00
Bo26fhmC5M
fb941148e0 feat: add trigger effect RunAxLLM 2025-02-08 17:15:45 +09:00