Commit Graph

2072 Commits

Author SHA1 Message Date
kwaroran
7db4ad8139 Fix hypav2 issue where the 'search_document: ' string is not truncated correctly. (#675)
# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
This PR fixes hypav2 issue where the "search_document: " string is not
truncated correctly.
If the "search_document: " string is not truncated correctly, it will
cause "t: " to remain within the <Past Events Details></Past Events
Details> tag.

Edit: This PR also add memo "supaPrompt" to detect supaMemory model
requests in the plugin
2024-12-05 22:52:21 +09:00
kwaroran
998e8e6c65 bump version to 141.2.1 2024-12-05 22:50:41 +09:00
kwaroran
4352466dac Update realm.ts 2024-12-05 22:50:18 +09:00
Bo26fhmC5M
ecc2817a7b Add memo to detect supaMemory model requests in the plugin 2024-12-04 13:46:35 +09:00
Bo26fhmC5M
dbd7485c50 Fix hypav2 issue where the 'search_document: ' string is not truncated correctly. 2024-12-03 22:12:53 +09:00
kwaroran
8d1e7cc5a8 Fix {{#if_pure}} syntax issue where indentation and whitespace were not preserved as intended. (#674)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
This PR fixes an issue where indentation and whitespace inside the
{{#if_pure}} syntax were being trimmed.
I made an effort to minimize the impact on the parser's existing
behavior.
2024-12-03 21:35:58 +09:00
kwaroran
2b8195041f bump version to 141.2.0 2024-12-03 21:35:09 +09:00
kwaroran
50d20bcc3f Add custom flags 2024-12-03 21:34:55 +09:00
kwaroran
9ac91190f9 bump version 2024-12-03 21:16:50 +09:00
Bo26fhmC5M
3c8ac16367 Fix {{#if_pure}} syntax issue where spaces and whitespace were not preserved as intended. 2024-12-02 13:04:56 +09:00
kwaroran
18ea5aff4e Add notification feature with permission handling and UI toggle 2024-12-02 04:42:13 +09:00
kwaroran
8f72b9e6e2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-01 18:11:08 +09:00
kwaroran
5499368ac0 Fix version numbers 2024-12-01 18:08:06 +09:00
kwaroran
9f4d99db4c Fix translation issue in input auto-translation field for LLM-based Translation (#673)
# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
This PR introduces a fix for the issue where the input auto-translation
field ("Enter Message for Translate to English" text displayed when
nothing is entered) was not correctly translating the original text into
English in the LLM-based translation.

Additionally, this update ensures that "Curly Braced Syntaxes {{slot}}"
are translated into the user's native language when the translation
button is pressed, and into English during the input translation,
facilitating more effective translation.
2024-12-01 17:28:48 +09:00
kwaroran
227a11815f Improve parser 2024-12-01 17:25:15 +09:00
kwaroran
d05f5942a1 Add support for 'jb' 2024-12-01 17:16:45 +09:00
kwaroran
6231192dca Fix CBS 2024-12-01 17:15:02 +09:00
kwaroran
8a6cfedcda Add ChatML and Rework display 2024-12-01 17:05:50 +09:00
Bo26fhmC5M
7c6ab023d1 Fix translation issue in input auto-translation field. 2024-11-30 11:16:47 +09:00
kwaroran
7e1fa69b56 Bump version to 140.1.0 2024-11-30 02:20:01 +09:00
kwaroran
d12ab8ead1 Add lightningRealmImport 2024-11-30 02:17:03 +09:00
kwaroran
48fadc4e59 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-11-30 01:30:19 +09:00
kwaroran
7bad240d85 Refactor character card processing by consolidating logic into convertCharbook function 2024-11-30 01:30:06 +09:00
Bo26fhmC5M
ae6d12ea29 Add autoTranslateCachedOnly option to auto-translate only previously translated text when enabled. 2024-11-28 21:53:15 +09:00
Kwaroran
7202a12b93 Bump version to 140.0.3 2024-11-27 18:03:20 +09:00
Kwaroran
c22cde2c8a Fix systemContentReplacement empty string 2024-11-27 18:00:40 +09:00
Kwaroran
1e96eada22 Handle optional system content replacement in reformater function 2024-11-27 11:10:15 +09:00
Kwaroran
94c417c33b Bump version to 140.0.2 2024-11-27 10:34:04 +09:00
Kwaroran
3a54add582 Fix modellist 2024-11-27 10:33:05 +09:00
Kwaroran
842258a0f5 Bump version to 140.0.1 2024-11-27 09:05:28 +09:00
Kwaroran
fef96fefd4 Fix botpreset 2024-11-27 09:05:03 +09:00
Kwaroran
32bb0430e2 Bump version to 140.0.0 2024-11-27 08:43:26 +09:00
Kwaroran
096d2fe62c Add hotkeys 2024-11-27 08:29:59 +09:00
Kwaroran
8366acc66c Add abort signal handling to requestGoogleCloudVertex function 2024-11-27 08:04:33 +09:00
Kwaroran
68113cc383 Add system prompt handling to requestGoogleCloudVertex function 2024-11-27 08:03:17 +09:00
Kwaroran
2b50abc09c Add retranslate 2024-11-27 06:31:59 +09:00
Kwaroran
981ec3921e Add plenty of features 2024-11-27 06:01:42 +09:00
Kwaroran
73b7fd9156 Update LLM model provider from GoogleCloud to VertexAI 2024-11-27 04:48:30 +09:00
Kwaroran
597c8879fc Add systemContentReplacement and Flags 2024-11-27 04:33:12 +09:00
kwaroran
cc8d753dc8 Rework custom API 2024-11-25 23:04:32 +09:00
kwaroran
8274fae180 Refactor model handling 2024-11-25 05:25:58 +09:00
kwaroran
cfc819f144 Add modellist (incomplete) 2024-11-24 22:13:44 +09:00
kwaroran
66dddbb20c Bump version to 139.2.0 2024-11-22 21:54:24 +09:00
kwaroran
6214388cc6 Add new model options for Mistral Large 2411 and Gemini Exp 1121 and Flash 002, fixes #666 2024-11-22 21:52:39 +09:00
kwaroran
a09b7827f0 Bump version to 139.1.0 2024-11-21 15:44:29 +09:00
kwaroran
ec03903372 Add OAI prediction 2024-11-21 15:44:14 +09:00
kwaroran
e895008814 Add 4o 1120 2024-11-21 15:38:04 +09:00
kwaroran
ebbb9d9191 Add specific token ban 2024-11-18 20:08:34 +09:00
kwaroran
c361372de1 Fix macOS Asset Visibility Issue in Local Version of RisuAI (#665)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
## Problem
This PR resolves an issue where assets were not visible on macOS when
using `asset://localhost/` URLs.

The problem occurred because **DOMPurify** was removing the `src`
attribute when its value started with `asset://localhost/`. This
behavior affected the visibility of assets on macOS for the Local
version of RisuAI.


## Solution
To address this, I chose to use `DOMPurify.addHook` to allow `src`
attributes starting with `asset://localhost/` for certain tags.

I also thought about another solution: passing `ALLOWED_URI_REGEXP` to
`DOMPurify.sanitize`. However, I decided not to use it because it would
require using regular expressions to check strings every time the method
is called, which might be less efficient in my opinion.


## Considerations
While this issue is specific to macOS and the Local version of RisuAI, I
opted not to include additional conditions for the following reasons:
1. The code change is simple and lightweight.
2. It doesn’t cause conflicts on other OSes or RisuAI versions.
3. Avoiding conditions improves readability and maintainability.

---

If you have any suggestions for a better approach, I’d be happy to hear
them!

---

## Linked Issue
This PR addresses and fixes #656
2024-11-17 23:38:18 +09:00
kwaroran
871b9ce367 Bump version to 139.0.0 2024-11-17 23:38:03 +09:00