Commit Graph

3529 Commits

Author SHA1 Message Date
kwaroran
c30da266b8 bump version to 155.0.0 in configuration and related files 2025-03-17 22:15:52 +09:00
kwaroran
859a086b79 Fix budget thinking 2025-03-17 22:15:01 +09:00
kwaroran
606efbf991 Add bergamotTranslate import onhtml translation too 2025-03-17 16:10:14 +09:00
kwaroran
eea99c6ea2 Change bergamotTranslator to dynamic import 2025-03-17 16:08:11 +09:00
kwaroran
30dce07c70 Add Firefox(Bergamot) local translation (#794)
# 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
Translation is performed using the models hosted in the repository:
https://github.com/mozilla/firefox-translations-models/

When the translation is first running, the model is downloaded from the
repository.

Testing completed for `npm dev` and Node server environment.
2025-03-17 16:05:46 +09:00
kwaroran
15eb4de1ea fix: treating unary minus in calcString (#784)
# 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 has been reported that calcString incorrectly calculates expressions
when a negative number appears on the right-hand side. This pull request
addresses this issue.
2025-03-17 16:02:22 +09:00
kwaroran
480576bad5 fix: add custom embedding model name as suffix to hypaVector storage keys (#789)
# 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 introduces following:
- Add custom embedding model name as suffix to hypaVector storage keys
when using custom embedding models to prevent vector dimension mismatch
errors.
2025-03-17 15:53:51 +09:00
kwaroran
e3b1f257c9 fix: update plugin docs with abortSignal support (#790)
# 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 introduces following:
- Add setArg function to plugin docs
- Add abortSignal parameter to addProvider function
2025-03-17 15:52:53 +09:00
kwaroran
88c04975fe fix: Chat trigger on start (#788)
# 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 fix the following issues:
1. Fixed an issue where chat array changes caused by the 'start' mode
trigger were not being applied correctly. (This problem occurs in both
block type and Lua type.)
2. Occasionally, there was a problem with scriptstate desync in Lua
triggers, so I've changed to update method on every call.
2025-03-17 15:52:38 +09:00
kwaroran
b6d0fab4b8 Add claudeRetrivalCaching option 2025-03-17 15:27:00 +09:00
kwaroran
4a5722a8bd Fix doNotChangeSeperateModels 2025-03-17 15:01:03 +09:00
kwaroran
bf4f27d0e5 Add seperate models 2025-03-17 14:30:29 +09:00
ModMapper
f3ba23bc59 Add Firefox Translations 2025-03-16 19:41:06 +09:00
kwaroran
5c53e16b85 Add preview request data 2025-03-16 19:24:59 +09:00
ModMapper
bbb01d2961 Add Firefox (Bergamot) translation settings 2025-03-16 19:23:38 +09:00
Bo26fhmC5M
cacad3600e fix: update plugin docs with abortSignal support
- Add setArg function to plugin docs
- Add abortSignal parameter to addProvider function
2025-03-15 01:13:30 +09:00
Bo26fhmC5M
825bcaf63e fix: add custom embedding model name as suffix to hypaVector storage keys
- Add custom embedding model name as suffix to hypaVector storage keys when using custom embedding models to prevent vector dimension mismatch errors.
2025-03-14 23:58:01 +09:00
bangonicdd
6446d4aa07 fix: Chat trigger on start 2025-03-14 15:58:22 +09:00
Kwaroran
480d33a673 Remove debug logging from image processing in requestGoogleCloudVertex function 2025-03-13 20:21:45 +09:00
kwaroran
fef10c1e56 Add translate sound 2025-03-13 20:21:05 +09:00
kwaroran
20087a09b2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-03-13 16:38:41 +09:00
kwaroran
55a5cae5e5 Bump version to 154.0.0 across configuration files 2025-03-13 16:38:35 +09:00
kwaroran
ff151f4efe Fix: translation request was made even though useAutoTranslateInput is turned off (#783)
# 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
Because of this, even when useAutoTranslateInput is turned off, Google
translation request runs every time a sentence is modified.


![image](https://github.com/user-attachments/assets/74133172-bbf0-439a-a715-cb253f94141e)
2025-03-13 16:38:12 +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
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
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
bangonicdd
aaa9dfc2dc feat:Add 'module_assetlist' cbs 2025-03-12 22:34:29 +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
140dcb7384 Add retries to observer 2025-03-12 10:26:44 +09:00
bangonicdd
681846cc93 fix: Add missing '!=' implementation in calcString 2025-03-12 10:23:52 +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
bangonicdd
e895c2296c fix: treating unary minus in calcString 2025-03-10 14:26:50 +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
sub-hub
48b470bf06 Fix: Now useAutoTranslateInput is turned off, translation requests are not made. 2025-03-09 21:09:58 +09:00
bangonicdd
71ee015f21 fix: lua chat functions 2025-03-09 19:58:08 +09:00