Commit Graph

3186 Commits

Author SHA1 Message Date
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
Kwaroran
ff4cfede65 Enable alert for copied text in chat 2024-11-27 07:56:24 +09:00
Kwaroran
2acbc00548 Improve chat copy 2024-11-27 07:53:35 +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
9ab7dd3091 Remove AWS Claude check from BotSettings 2024-11-27 04:47:05 +09:00
Kwaroran
07fd36a811 Fix background embedding 2024-11-27 04:44:25 +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
1102899c26 Enable experimental caching for Claude in WelcomeRisu component 2024-11-18 21:17:59 +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
kwaroran
342e4a83c9 Update Chinese translations 2024-11-17 23:37:41 +09:00
kwaroran
5f9b79816a Remove packageManager field from package.json 2024-11-17 23:21:00 +09:00
kwaroran
cd7c2e2086 Improve chinese 2024-11-17 23:20:27 +09:00
kwaroran
032da9c8b8 Update language 2024-11-17 23:18:05 +09:00
kwaroran
33b966af6e Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-11-17 23:03:26 +09:00