Commit Graph

2124 Commits

Author SHA1 Message Date
kwaroran
d302aaa79f Add date and time formatting cbs 2024-04-03 19:47:26 +09:00
kwaroran
6a9d88e525 remame time and date cbs to message_time and message_date 2024-04-03 19:37:33 +09:00
kwaroran
1c3c3cc16d Add new cbs to the parser.ts file 2024-04-03 19:36:27 +09:00
kwaroran
8f8441e529 make parse block to trim leading and trailing whitespace in parse function 2024-04-03 19:19:15 +09:00
kwaroran
28d4ee93cf Refactor blockEndMatcher function to use switch statement 2024-04-03 19:18:28 +09:00
kwaroran
9d90901223 Remove trim() function call in parse-pure 2024-04-03 19:17:39 +09:00
kwaroran
2ad8d0e105 Add parse pure and fix statements 2024-04-03 19:15:41 +09:00
kwaroran
4eef895588 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-04-03 19:13:02 +09:00
kwaroran
6e8c818ed5 Trim whitespace in blockEndMatcher function 2024-04-03 19:12:59 +09:00
kwaroran
f97deccb02 Add pick and pow CBS 2024-04-03 19:12:48 +09:00
kwaroran
aa3f0d2413 Fixing the issue with quote escape when serializing strings in JSON i… (#334)
…n DeepLX.

# 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

Fix the issue of escape characters in quotes caused by unnecessary JSON
serialization of translation strings in DeepLX.
2024-03-30 02:35:07 +09:00
kwaroran
033ade5cc1 Update version to 1.90.1 2024-03-30 02:34:51 +09:00
kwaroran
70d68bf8fe Fix scriptstate assignment in processCommand function 2024-03-30 02:34:34 +09:00
kwaroran
6e930dc84f Forgot to fix version 2024-03-29 20:41:12 +09:00
kwaroran
2cfa373a48 Update version to 1.90.0 2024-03-29 20:40:59 +09:00
kwaroran
aee17205ed Add error handling 2024-03-29 20:36:05 +09:00
kwaroran
3ae75f3e5c Add string manipulation functions to parser.ts 2024-03-29 18:15:17 +09:00
kwaroran
86400dffe3 Update version to 1.89.0 2024-03-28 18:42:56 +09:00
kwaroran
00e86527ce fix trigger variable handling in triggers.ts 2024-03-28 18:37:32 +09:00
kwaroran
25696c8d60 Refactor variable handling in parser.ts 2024-03-28 18:33:48 +09:00
kwaroran
9ad8262eb6 Refactor command processing logic and add new commands for variable manipulation 2024-03-28 18:27:18 +09:00
kwaroran
949269e2d6 Add update to RisuRealm feature 2024-03-28 18:04:51 +09:00
kwaroran
bce98a84a5 Add sleep function to wait for input update 2024-03-28 03:59:45 +09:00
kwaroran
9f0d398d3b Make risurealm share and download to use new api 2024-03-28 03:59:14 +09:00
kwaroran
ea6b1d20e5 Prepare new realm upload 2024-03-28 03:02:18 +09:00
ModMapper
1575004cf0 Fixing the issue with quote escape when serializing strings in JSON in DeepLX. 2024-03-28 02:15:23 +09:00
kwaroran
279b68d3c6 Fix characterCards importCharacterProcess function 2024-03-28 01:25:11 +09:00
kwaroran
9f0a8f38b5 Fix image not appending 2024-03-28 01:24:50 +09:00
kwaroran
dbaa2968cc Fix decoding issue in pngChunk.ts 2024-03-28 01:19:33 +09:00
kwaroran
6202838458 Refactor importCharacterProcess and readGenerator functions to support ReadableStream 2024-03-26 04:38:06 +09:00
kwaroran
5b4f24019b Rework importCharacterProcess and selectFileByDom functions 2024-03-26 04:01:07 +09:00
kwaroran
92c2cd1a1a Update version to 1.88.3 2024-03-26 03:03:48 +09:00
kwaroran
776b49534d Add content type header based on body type in fetchWithProxy function 2024-03-26 03:03:01 +09:00
kwaroran
65c148f371 Update version to 1.88.2 2024-03-25 23:10:59 +09:00
kwaroran
ac54cb3816 Fix default method in fetchWithProxy 2024-03-25 23:10:42 +09:00
kwaroran
026e47c89e Update version to 1.88.1 2024-03-25 21:24:25 +09:00
kwaroran
ddf36064bb Update deeplXUrl placeholder and default value 2024-03-25 21:24:03 +09:00
kwaroran
52c176234f fix translateTranslationChunks function 2024-03-25 21:21:59 +09:00
kwaroran
dc6d39b754 Update version to 1.88.0 2024-03-25 21:03:26 +09:00
kwaroran
e4ecb46959 Add ST preset import 2024-03-25 20:57:41 +09:00
kwaroran
09d9ff6933 Add noWaitForTranslate options 2024-03-25 20:22:59 +09:00
kwaroran
a70a10607f Add translation wait time 2024-03-25 20:22:21 +09:00
kwaroran
b7f53523e0 Update needSuperChunkedTranslate function to check translatorType 2024-03-25 20:18:47 +09:00
kwaroran
f3b8ea7781 Fix translation chunk splitting and translation process 2024-03-25 20:18:37 +09:00
kwaroran
a67962f2cd make needSuperChunkedTranslate function to always return false for now 2024-03-25 19:52:28 +09:00
kwaroran
d2a168524e Refactor translation logic and add super chunked translation 2024-03-25 19:52:05 +09:00
kwaroran
28436fc620 Refactor DeeplX URL handling in translator.ts 2024-03-25 19:10:19 +09:00
kwaroran
6ac23c6054 Refactor globalFetch function to simplify and improve readability 2024-03-25 18:58:05 +09:00
kwaroran
7707e55c87 GlobalFetch 리팩토링, Elevenlabs 다국어모델 정보 body에 삽입, DeepLX 로직구현(미작동) (#328)
# PR Checklist
- [x] 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
1. DeepLX 를 번역 옵션에 넣고 URL, Token을 넣을 수 있게 하였습니다.
2. DeepLX 를 호출하는 로직을 넣었는데, DeepLX의 Body 중 Text는 완전한 텍스트로만 이루어져야 해서 번역
실행시 에러가 발생하는 중입니다. (DeepLX에 globalFetech로 호출은 정상적으로 가는중, body의 text타입만
해결하면 작동,)
3. TTS -> 일레븐랩스 호출시 body에 model을 다국어모델로 지정하였습니다. (정상작동)
4. globalFetch 함수를 리팩토링 하였습니다.

DeepLX 쪽만 해결방법을 찾으면 좋을 것 같은데 로직이 제가 생각한 것과 달라서 파악하는데 시간이 오래걸리고 있습니다.

DeepLX 부분 저도 더 로직 분석해볼 예정이지만, 
Body 부분에서 특수문자 제거 및 본문 텍스트만 파싱해서 번역 후 재조립하는 게 구현 가능하시다면 
해당 부분만 업데이트 해주시면 좋을 것 같습니다.
2024-03-25 18:53:26 +09:00
testman
72a682612a DeepLX 에러 해결 및 구현성공 2024-03-25 15:48:59 +09:00