Commit Graph

3110 Commits

Author SHA1 Message Date
Bo26fhmC5M
ecc2817a7b Add memo to detect supaMemory model requests in the plugin 2024-12-04 13:46:35 +09:00
Bo26fhmC5M
6c62580ccb Fix issue with autoTranslateCachedOnly option being ignored when sending messages 2024-12-03 22:38:09 +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
0e292bd690 aria-role fixes 2024-12-02 04:27:50 +09:00
kwaroran
8f72b9e6e2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-01 18:11:08 +09:00
kwaroran
ca57244153 Add alertClear to imports and update error handling in Chat.svelte 2024-12-01 18:09:36 +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
9ba1686781 Fix cache handling for autoTranslateCachedOnly when translateBeforeHTMLFormatting is disabled (#672)
# 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 an issue where cache misses occur when
translateBeforeHTMLFormatting is disabled. Previously, the 'Auto
Translate Cached Only' feature only worked when
translateBeforeHTMLFormatting was enabled. This update ensures that
cached translations are used properly even when
translateBeforeHTMLFormatting is disabled.

Thank you for taking the time. This is not an urgent matter, but I would
appreciate it if you could incorporate this PR along with other changes
in the next update.
2024-12-01 17:28:37 +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
Bo26fhmC5M
daa9ed79c8 Fix issue where cache misses occur when translateBeforeHTMLFormatting is disabled. 2024-11-30 08:53:55 +09:00
kwaroran
5ebb934d3b Update Traditional Chinese Translations in zh-Hant.ts (#671)
# PR Checklist
- [x] Did you check if it works normally in all models? *This PR does
not affect models.*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? *This PR only modifies translations.*
- [x] Did you added a type def? *No type definitions were required for
this PR.*

# Description
This PR updates the Traditional Chinese translations to improve
consistency and better align with user preferences.
Key changes include:
- Retained the term "lorebook" as it remains commonly used among
Traditional Chinese users.
- Adjusted some wording, such as changing "頭貼" to "頭像," as "頭像" has been
widely used by Traditional Chinese users since at least 2008. This
change was also confirmed by professional translators as the preferred
term.
- Retained English terms such as "Enable Schema" for technical clarity,
as no established Traditional Chinese translations exist for these
terms.

This PR was created by adapting the translations from the RisuAI `.json`
translation file. The formatting has been carefully reviewed, and I hope
there are no issues.
2024-11-30 02:21:51 +09:00
kwaroran
3851fab81c Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-11-30 02:20:03 +09:00
kwaroran
7e1fa69b56 Bump version to 140.1.0 2024-11-30 02:20:01 +09:00
kwaroran
4cca26d65a Update Simplified Chinese Translations in cn.ts (#670)
# PR Checklist
- [x] Did you check if it works normally in all models? *This PR does
not affect models.*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? *This PR only modifies translations.*
- [x] Did you added a type def? *No type definitions were required for
this PR.*

# Description
This PR updates the Simplified Chinese translations to better align with
user preferences.
Key changes include:
- Changed "lorebook" to "世界书," a commonly used term among Simplified
Chinese users.
- Retained English terms such as "Enable Schema" for clarity.
2024-11-30 02:19:09 +09:00
kwaroran
d12ab8ead1 Add lightningRealmImport 2024-11-30 02:17:03 +09:00
Rivelle
be6bb983e6 Update Traditional Chinese Translations in zh-Hant.ts
I updated some wording in the Traditional Chinese translations and completed some unfinished translations in this version. This update was completed independently by me.

For "lorebook," I chose to retain the original term, as it is still commonly used among Traditional Chinese users (at least based on my understanding).

I also fine-tuned some phrases, such as changing "頭貼" to "頭像." I discovered that "頭像" has been commonly used by Traditional Chinese users as early as 2008. Professional translators also confirmed that they generally use this translation.

Similar to the Simplified Chinese version, I decided to retain some technical terms like "Enable Schema" in English. Since there are no established Traditional Chinese equivalents for these terms, keeping them in English is considered more intuitive by many users.

This file was created by copying and adapting the translations from the RisuAI .json translation file. I have carefully checked the formatting and hope there are no issues.

Additionally, this is my first time uploading a branch... I didn’t initially realize the importance of preserving version comparisons on GitHub. However, since the previous submissions for both the Traditional and Simplified Chinese translations were also made by me, I believe this won’t cause significant problems.
2024-11-30 01:16:58 +08:00
Rivelle
02b007155b Update Simplified Chinese Translations in cn.ts
Extended Description: I have updated the word choices in Simplified Chinese translations to better align with the preferences of Simplified Chinese users. This update also includes some unfinished translations from the previous version.

With the help of several Simplified Chinese-speaking friends, I performed a thorough review of the translations. They pointed out that I occasionally used phrasing that reflects Traditional Chinese grammar habits. However, they confirmed that the current version is still clear and widely acceptable among Simplified Chinese users.

The main correction is translating "lorebook" to "世界书" in most cases, as this is the common term used by the Simplified Chinese community. Additionally, I decided to retain some technical terms, such as "Enable Schema," in English. Since there is no widely accepted Chinese translation for these terms, keeping them in English provides greater clarity and professionalism.

Lastly, this file was created by copying and adapting the translations from the RisuAI .json translation file. I have carefully checked the formatting and hope there are no issues.
2024-11-30 00:31:02 +08: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
kwaroran
56930c628d Add autoTranslateCachedOnly option for LLM-based Translation (#669)
# 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


![preview](https://github.com/user-attachments/assets/10cbf5f0-ca19-4350-922e-77ecf775fc8e)

Please introduce an autoTranslateCachedOnly option that automatically
translates only previously translated text when enabled.


# Why is this feature needed?
- LLM-based translations can be relatively costly, so end users may not
want new/specific text to be automatically translated.
- End users may prefer not to manually click the translate button when
viewing chat logs that have already been translated.
- By utilizing cached translations more effectively, we can enhance the
overall user experience.
2024-11-30 01:29:34 +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
b6ee2928dd Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-11-27 18:06:10 +09:00
kwaroran
0eb83039ce Fix missing aws key slot (#668)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] 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

![image](https://github.com/user-attachments/assets/3d9414d8-d0df-4b3a-afb8-faaab36e94ee)

Current build doesn't have aws key slot.
Thank for your time.
2024-11-27 18:05:53 +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
bangonicdd
932262295d Fix missing aws key slot 2024-11-27 16:59:16 +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
171db25f55 Add try-catch 2024-11-27 09:19:22 +09:00
Kwaroran
eaf429a61f Optimize image loading by using canvas to convert fetched images to data URLs 2024-11-27 09:17:57 +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
e0de68cf9e Remove log share button from chat interface 2024-11-27 08:09:32 +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
2dbb3dfd04 Add Korean translations for new features and prompts 2024-11-27 07:58:07 +09:00