Commit Graph

2547 Commits

Author SHA1 Message Date
kwaroran
8d5fb1a139 bump version to 141.5.0 in configuration and related files 2024-12-07 22:29:56 +09:00
kwaroran
35ab2951d2 Update character card validation to check 'spec' instead of version 2024-12-07 22:27:24 +09:00
HyperBlaze
3d3e4dd6a1 refactor: logging changes
not so much but just in case:
2024-12-06 20:20:39 -08:00
kwaroran
9d8f239250 Refactor tokenizer 2024-12-07 06:24:33 +09:00
HyperBlaze
c45eed40af fix: currentChat not being updated 2024-12-06 11:24:45 -08:00
kwaroran
34b4a1245b Add google cloud tokenizer 2024-12-07 03:49:56 +09:00
kwaroran
852bd6a882 bump version to 141.4.0 in configuration and related files 2024-12-07 03:21:01 +09:00
kwaroran
03bdca0958 Remove unused Plugin button from ModelList and update model parameters for Gemini Exp 1206; adjust URL generation logic in request functions. 2024-12-07 03:20:45 +09:00
HyperBlaze
f652400a1b Merge branch 'main' of https://github.com/LightningHyperBlaze45654/RisuAI 2024-12-06 09:35:50 -08:00
LightningHyperBlaze45654
56646809a1 add logging 2024-12-06 08:49:00 -08:00
kwaroran
80da860f6c bump version to 141.3.0 2024-12-07 00:58:33 +09:00
kwaroran
909e9635d2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-07 00:58:13 +09:00
kwaroran
e0f6c58540 Refactor HypaProcesser instantiation to remove hardcoded model name and add models and others 2024-12-07 00:58:09 +09:00
LightningHyperBlaze45654
e4e63dc237 force pushing desktop updates
add log soon
2024-12-05 16:09:06 -08:00
HyperBlaze
b283b4a126 fix: index issues
forgot to commit on my pc, so doing it on laptop
2024-12-05 12:21:58 -08:00
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
HyperBlaze
ea6d7dada1 bugfix/deleted feature restored
Resolved bug when entire chat context is deleted and hypaV2Data becomes empty, throwing a undefined index error. Also changed it to typescript index.

Hopefully resolved issue where same chat is summarized over and over again by adding another field to mainChunks.
2024-12-04 22:10:16 -08:00
HyperBlaze
2728b9c5f5 Merge branch 'kwaroran:main' into main 2024-12-03 23:28:56 -08:00
LightningHyperBlaze45654
b8bb2330cc feat: validate hypav2 data
# Changelist:
## 1. Types
### MainChunks
Added id(int), and chatMemos(Set<string>)
Id: incremental int starting from 0
chatMemos: A set of UUID, containing which chat has been summarized in it.
### Chunks
mainChunkID: A connection of which mainChunk it has been split from
text: the split text data

## 2. Features
### CleanInvalidChunks
Called every time when chat is updated and Hypamemory is used.

Gets all the memo(UUID)s of current chats, and creates a set.
Then checks if each mainChunk's chatMemos set is subset of the enitre memo set. If not, the summarized part's chat is deleted/edited. The mainChunk is filtered out.
Concurrently, the chunks that are split from that mainChunk is also deleted.
2024-12-03 23:28:18 -08: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
LightningHyperBlaze45654
46502e762b add: gut updates
are you ready?
I hate school
2024-12-01 22:15:19 -08: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
LightningHyperBlaze45654
4ea365a141 refactor: logging 2024-12-01 19:31:23 -08:00
LightningHyperBlaze45654
83b79fa48d fix: chunks not being filtered correctly
need to check if chat.memo is actually a unique uuid4/uuid5 or else it will be broken
2024-12-01 17:40:21 -08:00
LightningHyperBlaze45654
60d4e33893 feat: add validation
Also revoked potentially problematic feature(add hypav2data chunk)
TODO:
1. On mid-context editing, currently that is not considered as deletion. Do have optional editedChatIndex to latter dive in more.
2. re-roll mainChunks(re-summarization) functionalities added, but not able to access it.
2024-12-01 13:00:00 -08:00
kwaroran
18ea5aff4e Add notification feature with permission handling and UI toggle 2024-12-02 04:42:13 +09:00
HyperBlaze
835664a7aa Merge branch 'kwaroran:main' into main 2024-12-01 05:35:23 -08: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
LightningHyperBlaze45654
68f816bda9 Merge branch 'main' of https://github.com/LightningHyperBlaze45654/RisuAI 2024-11-29 20:33:11 -08: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